aspose file tools*
The moose likes Java in General and the fly likes How is StringBuffer Implemented Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How is StringBuffer Implemented" Watch "How is StringBuffer Implemented" New topic
Author

How is StringBuffer Implemented

Ravi Kiran Savirigana
Greenhorn

Joined: Nov 24, 2008
Posts: 20
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


Thanks,
Ravi
SCJP 5.0 | SCWCD 5.0
Embla Tingeling
Ranch Hand

Joined: Oct 22, 2009
Posts: 237
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

Joined: Jun 06, 2002
Posts: 181
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.


love your job and not your company;
...because you never know when your company will stop loving you!
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13881
    
  10

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


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How is StringBuffer Implemented
 
Similar Threads
Server Name and URL
Server Name and URL
Form submit using HttpUnit
100% CPU usage or bad code
EJB