字符串在前,基本数据类型基本上沦陷为拼接

    1. public class Demo2 {
    2. public static void main(String[] args) {
    3. int a =3;
    4. int b = 4;
    5. String str = "hell0";
    6. System.out.println(a+b + str); //7hello
    7. System.out.println(str+a+b); //hello34
    8. System.out.println(str+(a+b)); //hell07
    9. }