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.
- Click here to get free master-ciw-enterprise-developer Master CIW Enterprise Developer exam practice questions.
- Pass SCBCD in first attampt.
- Download free practice test for SUN SCDJWS exam.
- Download practice question and study guide for scjp for exam.
- Best exam simulation SUN scjp-5-0 download free trial.
- Become SUN SCMAD certified.
- Download practice question and study guide for scwcd for exam.
- Become SUN Java 5.0 certified.
- Click here to get free CX310-056 SCJP 5.0 Java Upgrade exam practice questions.
- Pass SUN CX310-065 - SCJP 6.0
- Pass SCJP Upgrade in first attampt.
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.