Originally posted by Abhishek Choudhary: HI ranchers I am just novice in java. Can anybody tell me that Does Concat() method of String class internally call String Buffer Class,or any other method in String class called String Buffer class.
Thanks In Advance
Howdy Abhishek Choudhary,
Welcome to JavaRanch.
The answer to your question is NO. StringBuffer class has a method called append. The concat() method calls the other methods of String class called getChars().
You can just browse through the source code of the JDK which is by default shipped as a zip file (src.zip) in the location where your JDK is installed (JDK_HOME).