public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(2 + 3 + "hello");
System.out.println("hello" + 2 + 3);
}
输出结果:
5hello
hello23
原因:从左至右
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(2 + 3 + "hello");
System.out.println("hello" + 2 + 3);
}
输出结果:
5hello
hello23
原因:从左至右