这是String,int之间的类型转换问题。根据优先级强转。

解决方案 »

  1.   

    应该说java重载了 "+" 这个运算符.
    这种地方不必深究,知道结果就好了.
      

  2.   

    在Java doc中有这样的描述:The Java language provides special support for the string concatenation operator ( + ), and for conversion of other objects to strings. String concatenation is implemented through the StringBuffer class and its append method.看了这个就搞定了~~
      

  3.   

    "+" 运算符 把别的对象搞成string
    45是int类型的对象