String vs StringBuffer vs StringBuilder in Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 9829
Total Votes: 139 votes
Category: JAVA/Core JAVA
Submitted on: 2011-08-16 13:42:03
Submitted By: Javin Paul
Description:String is one of the most important classes in Java and anyone who starts with java programming uses string to print something on console by using. No matter which kind of application you are working you will find heavy usage of java String class but if you do profiling of your application you will find that String is the one class which creates lots of garbage because of many temporary Strings created in program. In this article we will see What is String, some important properties of String in Java, What is StringBuffer in Java , When to use StringBuffer in Java , StringBuilder in Java and how it can be used in place of StringBuffer, What are differences between String and StringBuffer and StringBuilder in Java and mostly String vs StringBuilder vs StringBuffer. Now let's start with String. More detail...