CHAPTER 7
The Object and Objects Classes
In this chapter, you will learn
- About the hierarchical class structure in Java
- About the Object class being the superclass of classes
- How to use methods of the Object class with detailed examples
- How to reimplement methods of the Object class in your class
- How to check two objects for equality
- The difference between immutable and mutable objects
- How to use the utility methods of the Objects class to deal with null values gracefully
The Object Class
Java has an Object class in the java.lang package. All Java classes, those that are included in the Java class libraries and those that you create, extend ...
Get Beginning Java 8 Fundamentals: Language Syntax, Arrays, Data Types, Objects, and Regular Expressions 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.