Program for String Concatenation in Java

Concatenation is the process of combining two or more small strings to from a bigger string. String concatenation in java can be done in four different ways given below.


1. Using + operator
2. Using concat() method of String class
3. Using append() method of StringBuffer class
4. Using append() method of StringBuilder class

In below program I have implemented these four methods to concatenate two strings. If you find anything missing or incorrect then please mention it by commenting below. Feel free to ask your queries if you are getting any problem to understand the program.

Program for String Concatenation in Java


Program for String Concatenation in Java

1 thought on “Program for String Concatenation in Java”

Leave a Comment

Your email address will not be published. Required fields are marked *