StringBuilder is a class, which is very similar to the StringBuffer class. It is a new concept introduced in J2SE 5. Like the String and the StringBuffer classes, it extends directly from the Object class. The StringBuilder class can act as an alternative to StringBuffer in places where the environment is not multithreaded, i.e, where synchronization or multithreading is not significant. The signature of the StringBuilder class is as follows:
Since StringBuilder is not synchronized, it offers faster performance than StringBuffer.
- Download free practice test for master-ciw-enterprise-developer Master CIW Enterprise Developer exam.
- Click here to download scbcd test study guide and practice question.
- Become SUN SCDJWS certified.
- Get certified in first attempt download scjp - SCJP simulation.
- Click here to download scjp-5-0 test study guide and practice question.
- Best exam simulation SUN scmad download free trial.
- Become SUN SCWCD certified.
- Pass SUN CX310-055 - Java 5.0
- Download free practice test for SUN SCJP 5.0 Java Upgrade exam.
- Pass SUN CX310-065 - SCJP 6.0
- Click here to download CX310-066 test study guide and practice question.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.