In this article, String addition and Special Operators in Java are explained in detail with examples.
This operator is '+'. It is used to add or concate two or more string as a single string.
This operator is '+'. It is used to add or concate two or more string as a single string.
Ex
"Hello"+"World" =>"Helloworld"
It is also used to add a string with any value/variable and form a new string.
Ex
"sum is: "+(a+b)
Here value or variable is of any data type.