String

Strings are sequence of characters which are widely used in the Java programming. String are Objects in Java.
Learn more...
String is a Class in Java which contains a number of methods to perform various operations on String.
Learn more...
String Memory Layout is a structure of data that indicates how memory is laid out.
Learn more...
StringBuffer is an alternative to String in the object-oriented programming.String is normally fixed or immutable whereas StringBuffer has the ability to be altered through adding or appending. A string buffer is like a String, but can be modified
Learn more...
StringBuffer also contains various methods to perform operation on String in which some of them are common with String Class methods.
Learn more...
StringBuffer Memory Layout is also define structure of data that indicates how memory is laid out.
Learn more...
The significant performance difference between String and StringBuffer classes is that StringBuffer is faster than String when performing simple concatenations.
Learn more...
StringBuffer is very good with mutable String but it has one disadvantage all its public methods are synchronized which makes it thread-safe but same time slow. In JDK 5 StringBuilder class is introduced in Java which is a copy of StringBuffer but without synchronization.
Learn more...
In Java you can use StringTokenizer class to break a string into tokens. The tokenization method is much simpler than the one used by the StreamTokenizer class.
Learn more...
Here are some of the examples for String.