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
posted
0
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: 180
posted
0
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!
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).