String Operations in Java

Classical Example Programs in String Handling

String Objects

String objects are immutable.Once instantiated,their content cannot be changed.In order to change their content values a special string class called “StringBuffer” class is used.

Creating the object

A string object can be instantiated in two ways. But this is not the case for other objects.

eg:


Wednesday, July 29, 2009