Chapter 9, “The java.lang Package”

The Object class is at the top of the Java class hierarchy. All classes are subclasses of Object; therefore, all classes inherit Object's methods.

The Class class is used to provide information about each class that the Java Virtual Machine loads.

The getClass() method of Object identifies the class of an object by returning an object of Class.

The toString()method of Object creates a String representation of the value of an object.

The finalize() method of Object is executed when an object is garbage collected.

The ClassLoader class enables you to define custom loaders for classes that are loaded from locations outside the CLASSPATH—for example, over a network.

The SecurityManager class enables you to define ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.