运算符 “ + ” 的优先级高于 “ == ”
public class Main {
public static void main(String[] args) {
String s1 = "wise";
String s2 = "wise";
System.out.println("s1 == s2:" + s1 == s2);
System.out.println("s1 == s2:" + (s1 == s2));
}
}
false
s1 == s2:true