+ operator for String in Java [duplicate]
This question already has an answer here: How does the String class override the + operator? 7 answers I saw this question a few minutes ago, and decided to take a look in the java String class to check if there was some overloading for the + operator. I couldn't find anything, but I know I can do this String ab = "ab"; String cd = "cd"; String both = ab + cd; //both = "abcd" Where's that implemented? From the Fine Manual : The Java language provides special support for the string concatenation operator ( + ), and for conversion of other objects to strings. String concatenation is implemented