下面代码的输出结果是什么?( )
int three = 3;
String four = "4";
System.out.println(1 + 2 + three + four);"10"
"1234"
"334"
"127"
"64"
字符串和数字相加,数字被当作字符串处理,当数字存在混合计算时,按加法优先级规则进行计算。
下面代码的输出结果是什么?( )
int three = 3;
String four = "4";
System.out.println(1 + 2 + three + four);"10"
"1234"
"334"
"127"
"64"