Strings are inseparable part of computer programming. Hence, Java has provided an inbuilt class
String to handle strings. In C/C++, strings are stored in array of characters terminated by null character. In Java, we need not worry about how it is implemented internally.
Java has a class
String defined in the package
java.lang. We are given a rich set of methods to work with strings. Table 10.1 lists the important methods for our ready reference.
It may be noted that unlike C++, strings in Java are immutable. You can not modify any character from a string.
Normal operations with strings are