CHAPTER 6

image

Classes and Objects

In this chapter, you will learn:

  • What classes are in Java
  • How to declare classes in Java
  • How to declare class members such as fields and methods and their access levels
  • How to create objects of a class
  • How to declare import statements in a compilation unit
  • The meaning of the pronouns this and super in a Java program
  • Different parameter passing mechanisms in general, and then, the parameter passing mechanisms in Java
  • What constructors of a class are and how to use them
  • Initializers of a class
  • Declaring final variables, classes, and methods
  • How to declare and use varargs parameters
  • What generic classes are and how ...

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 live online training, plus books, videos, and digital content from nearly 200 publishers.