Skip to Main Content
Beginning Java 8 Fundamentals: Language Syntax, Arrays, Data Types, Objects, and Regular Expressions
book

Beginning Java 8 Fundamentals: Language Syntax, Arrays, Data Types, Objects, and Regular Expressions

by Kishori Sharan
June 2014
Beginner content levelBeginner
810 pages
23h 28m
English
Apress
Content preview from Beginning Java 8 Fundamentals: Language Syntax, Arrays, Data Types, Objects, and Regular Expressions

CHAPTER 7

image

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Java 9 Fundamentals: Arrays, Objects, Modules, JShell, and Regular Expressions

Beginning Java 9 Fundamentals: Arrays, Objects, Modules, JShell, and Regular Expressions

Kishori Sharan

Publisher Resources

ISBN: 9781430266532Purchase book