Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this Book
About the Author
About the Cover Illustration
Chapter Introduction
1. Disclaimer
2. Introduction to OCA Java SE 8 Programmer I Certification
3. The importance of OCA Java SE 8 Programmer I Certification
4. Comparing OCA Java exam versions
5. Next step: OCP Java SE 8 Programmer II (1Z0-809) exam
6. Complete exam objectives, mapped to book chapters, and readiness checklist
7. FAQs
7.1. FAQs on exam preparation
7.2. FAQs on taking the exam
8. The testing engine used in the exam
Chapter 1. Java basics
1.1. The structures of a Java class and a source code file
1.1.1. Structure of a Java class
1.1.2. Structure and components of a Java source code file
1.2. Executable Java applications
1.2.1. Executable Java classes versus non-executable Java classes
1.2.2. The main method
1.2.3. Run a Java program from the command line
1.3. Java packages
1.3.1. The need for packages
1.3.2. Defining classes in a package using the package statement
1.3.3. Using simple names with import statements
1.3.4. Using packaged classes without using the import statement