Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How is StringBuffer Implemented

 
Ravi Kiran Savirigana
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I just want to know how is the string buffer implemented i.e. how is it that the size of it dynamically change as we go on appending something.

Thanks
Ravi
 
Embla Tingeling
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Kiran Savirigana wrote:I just want to know how is the string buffer implemented i.e. how is it that the size of it dynamically change as we go on appending something.


I don't know about StringBuffer but the source code of many classes are supplied with the Sun Java SDK.
 
manoj r patil
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Best way to check this is to download the source code of latest jdk and check it. src.jar would be there in the default jdk distribution which you can link in your IDE like Eclipse.

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15490
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java source code of the classes in the standard Java API is included with the JDK, in the file src.zip which should be in your JDK installation directory. (You don't need to download it separately).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic