• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

String Buffer Class

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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).

Does that help you?
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic