The Object, Class, and Package Classes
Object and Class are two of the most important classes in the Java API. The Object class is at the top of the Java class hierarchy. All classes are subclasses of Object and, therefore, inherit its methods. The Class class is used to provide information about each class that is loaded by the Java Virtual Machine. The Package class was introduced with JDK 1.2. It is used to provide version information about a package.
Object
The Object class has no variables and has only one constructor; however, it provides 11 methods that are inherited by all Java classes and supports general operations used by all objects. For example, the equals() and hashCode() methods are used to compare Java objects. Hash tables are ...
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.