In Java strings can be concatenated in three ways:
1) Overloaded + operator (also known as String Concatenation operator).
2) Using concat() method of String class.
3) Using append() method of StringBuilder or StringBuffer class.
1) Overloaded + operator (also known as String Concatenation operator).
2) Using concat() method of String class.
3) Using append() method of StringBuilder or StringBuffer class.
I would like to know your comments and if you liked the article then please share it on social networking buttons.
No comments:
Post a Comment