Before discussing other features of object-oriented programming (OOP), let’s examine several important classes that are commonly used in Java. These classes are included in the Java class library that comes with the JRE. Mastering them will help you understand the examples that accompany the next OOP lessons.
The most prominent class of all is definitely java.lang.Object. However, it is hard to talk about this class without first covering inheritance, which I will do in Chapter 7, “Inheritance.” Therefore, java.lang.Object is only discussed briefly in this chapter. Right now I will concentrate on classes that you can use in your programs. I will start with java.lang.String and other types of strings: java.lang.StringBuffer ...