Welcome to Mission Java Programming 🚀
Learn the concat() method in Java String class with syntax, example, important points, and interview questions. 🚀
syntax: public String concat(String str)
Important Points:
concat() method belongs to the String class.
It joins two strings together.
Original string does not change because String is immutable.
Return type of concat() is String.
If empty string is passed, original string is returned.
#StringMethods #ConcatMethod #JavaInterviewQuestions #CoreJava