1.8. Review notes
This section lists the main points covered in this chapter.
The structure of a Java class and source code file:
- The OCA Java SE 8 Programmer I exam covers the structure and components of a Java class and Java source code file (.java file). It doesn’t cover the structure and components of Java bytecode files (.class files).
- A class can define multiple components. All the Java components you’ve heard of can be defined within a Java class: import and package statements, variables, constructors, methods, comments, nested classes, nested interfaces, annotations, and enums.
- This exam doesn’t cover the definitions of nested classes, nested interfaces, annotations, and enums.
- If a class defines a package statement, it should be the ...