Why does + work with Strings in Java?

前端 未结 6 1558
一向
一向 2020-12-19 06:26

Java can\'t do operator overloading, but + works okay for String and Integer and some other classes. How is this possible?

6条回答
提交回复
热议问题