|
One of the indispensable classes in java.lang after the Object is the String class. This section will cover it along with the StringBuffer class. We have been studying different aspects of the String class in the past chapters. For instance, we saw how the Sting class is a final class (Chapter 3 Modifiers) and how it cannot be subclassed. Here you will learn how the Java string objects are immutable (unchangeable). You will also learn about the differences between the String and StringBuffer class and their appropriateness in the certain situation.