OCA Java SE 8 Programmer I Study Guide (Exam 1Z0-808), 3rd Edition

Book description

The official study guide for the entry-level Oracle Certified Associate exam for Java Programmers—fully updated for Java SE 8

Confidently prepare for the OCA Java SE 8 Programmer I exam with this thoroughly revised, up-to-date guide from Oracle Press. Featuring step-by-step exercises, comprehensive chapter self-tests, and a CD-ROM containing two complete practice exams, this volume provides an integrated, easy-to-follow study system based on a proven methodology.

OCA Java SE 8 Programmer I Study Guide (Exam 1Z0-808) offers the most complete and in-depth coverage of all of the exam objectives, and also serves as an essential on-the-job reference for Java developers. You’ll have access to a total of more than 250 challenging practice questions that precisely mirror the content of the live exam—no other guide on the market provides the same level of accuracy and detail.

  • Questions accurately simulate the type and style of questions found on the actual test
  • Includes special “Exam Watch,” “Inside the Exam,” and “On the Job” sections
  • MAC and PC compatible test engine includes two complete practice exams and a searchable PDF copy of the book

Table of contents

  1. Cover
  2. Title Page
  3. Copyright
  4. Dedication
  5. About the Authors
  6. Contents
  7. Preface
  8. Acknowledgments
  9. Introduction
  10. 1 Packaging, Compiling, and Interpreting Java Code
    1. The Java Platform
      1. Platform Independence
      2. Java’s Object-Oriented Philosophy
      3. Robust and Secure
    2. Understand Packages
      1. Package Design
      2. package and import Statements
      3. Exercise 1-1: Replacing Implicit import Statements with Explicit import Statements
    3. Understand Package-Derived Classes
      1. Java Utilities API
      2. Java Basic Input/Output API
      3. The Java Networking API
      4. Java Abstract Window Toolkit API
      5. Java Swing API
      6. JavaFX API
    4. Understand Class Structure
      1. Naming Conventions
      2. Separators and Other Java Source Symbols
      3. Java Class Structure
    5. Compile and Interpret Java Code
      1. Java Compiler
      2. Java Interpreter
      3. Exercise 1-2: Compiling and Interpreting Packaged Software
    6. ✓ Two-Minute Drill
    7. Q&A Self Test
    8. Self Test Answers
  11. 2 Programming with Java Statements
    1. Understand Assignment Statements
      1. The Assignment Expression Statement
    2. Create and Use Conditional Statements
      1. The if Conditional Statement
      2. The if-then Conditional Statement
      3. The if-then-else Conditional Statement
      4. The Ternary Operator
      5. The switch Conditional Statement
      6. Exercise 2-1: Evaluating the String Class in the switch Statement
    3. Create and Use Iteration Statements
      1. The for Loop Iteration Statement
      2. The Enhanced for Loop Iteration Statement
      3. Exercise 2-2: Iterating Through an ArrayList While Applying Conditions
      4. The while Iteration Statement
      5. The do-while Iteration Statement
      6. Exercise 2-3: Performing Code Refactoring
      7. Exercise 2-4: Knowing Your Statement-Related Keywords
    4. Create and Use Transfer of Control Statements
      1. The break Transfer of Control Statement
      2. The continue Transfer of Control Statement
      3. The return Transfer of Control Statement
      4. The labeled Statement
    5. ✓ Two-Minute Drill
    6. Q&A Self Test
    7. Self Test Answers
  12. 3 Programming with Java Operators and Strings
    1. Understand Fundamental Operators
      1. Assignment Operators
      2. Exercise 3-1: Using Compound Assignment Operators
      3. Arithmetic Operators
      4. Relational Operators
      5. Logical Operators
      6. Understand Operator Precedence
    2. Use String Objects and Their Methods
      1. Strings
      2. The String Concatenation Operator
      3. Exercise 3-2: Uncovering Bugs that Your Compiler May Not Find
      4. Methods of the String Class
    3. Use StringBuilder Objects and Their Methods
      1. Methods of the StringBuilder Class
      2. Exercise 3-3: Using Constructors of the StringBuilder Class
    4. Test Equality Between Strings and Other Objects
      1. equals Method of the String Class
      2. Exercise 3-4: Working with the compareTo Method of the String Class
    5. ✓ Two-Minute Drill
    6. Q&A Self Test
    7. Self Test Answers
  13. 4 Working with Basic Classes and Variables
    1. Understand Primitives, Enumerations, and Objects
      1. Primitive Variables
      2. Objects
      3. Exercise 4-1: Compile and Run an Object
      4. Arrays
      5. Enumerations
      6. Java Is Strongly Typed
      7. Naming Conventions
    2. Use Primitives, Enumerations, and Objects
      1. Literals
      2. Examples of Primitives, Enumerations, and Objects
      3. Exercise 4-2: Creating Getters and Setters
    3. ✓ Two-Minute Drill
    4. Q&A Self Test
    5. Self Test Answers
  14. 5 Understanding Methods and Variable Scope
    1. Create and Use Methods
      1. Using Method Syntax
      2. Making and Calling a Method
      3. Overloading a Method
    2. Pass Objects by Reference and Value
      1. Passing Primitives by Value to Methods
      2. Passing Objects by Reference to Methods
    3. Understand Variable Scope
      1. Local Variables
      2. Method Parameters
      3. Instance Variables
      4. An Object’s Lifecycle
    4. Create and Use Constructors
      1. Making a Constructor
      2. Overloading a Constructor
      3. Using the Default Constructor
    5. Use the this and super Keywords
      1. The this Keyword
      2. The super Keyword
    6. Create Static Methods and Instance Variables
      1. Static Methods
      2. Static Variables
      3. Constants
    7. ✓ Two-Minute Drill
    8. Q&A Self Test
    9. Self Test Answers
  15. 6 Programming with Arrays
    1. Work with Java Arrays
      1. One-Dimensional Arrays
      2. Multi-Dimensional Arrays
    2. Work with ArrayList Objects and Their Methods
      1. Using the ArrayList Class
      2. ArrayList vs. Standard Arrays
      3. Exercise 6-1: Implement an ArrayList and Standard Array
    3. ✓ Two-Minute Drill
    4. Q&A Self Test
    5. Self Test Answers
  16. 7 Understanding Class Inheritance
    1. Implement and Use Inheritance and Class Types
      1. Inheritance
      2. Overriding Methods
      3. Abstract Classes
      4. Interfaces
      5. Advanced Concepts of Inheritance
    2. Understand Encapsulation Principles
      1. Good Design with Encapsulation
      2. Access Modifiers
      3. Setters and Getters
    3. Advanced Use of Classes with Inheritance and Encapsulation
      1. Java Access Modifiers Example
      2. Inheritance with Concrete Classes Examples
      3. Inheritance with Abstract Classes Examples
      4. Exercise 7-1: Add Functionality to the Plant Simulator
      5. Interface Example
    4. ✓ Two-Minute Drill
    5. Q&A Self Test
    6. Self Test Answers
  17. 8 Understanding Polymorphism and Casts
    1. Understand Polymorphism
      1. Concepts of Polymorphism
      2. Practical Examples of Polymorphism
      3. Exercise 8-1: Add Functionality to the Describable Example
    2. Understand Casting
      1. When Casting Is Needed
    3. ✓ Two-Minute Drill
    4. Q&A Self Test
    5. Self Test Answers
  18. 9 Handling Exceptions
    1. Understand the Rationale and Types of Exceptions
      1. Advantages of Exceptions
      2. Exception Hierarchy in Java
      3. Checked Exceptions
      4. Unchecked Exceptions
      5. (Unchecked) Errors
      6. Exercise 9-1: Determining When to Use Assertions in Place of Exceptions
    2. Understand the Nature of Exceptions
      1. Defining Exceptions
      2. Throwing Exceptions
      3. Propagating Exceptions
      4. Exercise 9-2: Creating a Custom Exception Class
    3. Alter the Program Flow
      1. The try-catch Statement
      2. The try-finally Statement
      3. The try-catch-finally Statement
      4. The try-with-resources Statement
      5. The multi-catch Clause
      6. Exercise 9-3: Using NetBeans Code Templates for Exception Handling Elements
    4. Recognize Common Exceptions
      1. Common Checked Exceptions
      2. Common Unchecked Exceptions
      3. Common Errors
      4. Exercise 9-4: Creating an Error Condition
    5. ✓ Two-Minute Drill
    6. Q&A Self Test
    7. Self Test Answers
  19. 10 Programming with the Date and Time API
    1. Understand the Date and Time API
      1. Calendar Data Creation
      2. Calendar Data Manipulation
      3. Calendar Periods
      4. Exercise 10-1: Using the normalized Method of the Period Class
      5. Calendar Data Formatting
    2. ✓ Two-Minute Drill
    3. Q&A Self Test
    4. Self Test Answers
  20. 11 Understanding Lambda Expressions
    1. Write Lambda Expressions
      1. Functional Programming
      2. Functional Interfaces
      3. Lambda Expressions
      4. Lambda Expressions and FI Example
      5. Predicate Functional Interface
      6. Exercise 11-1: IDE Refactoring for Lambda Expressions
    2. ✓ Two-Minute Drill
    3. Q&A Self Test
    4. Self Test Answers
  21. A Class Relationships
    1. Understand Class Compositions and Associations
      1. Class Compositions and Associations
      2. Class Relationships
      3. Multiplicities
      4. Association Navigation
    2. Class Compositions and Associations in Practice
      1. Examples of Class Association Relationships
      2. Examples of Class Composition Relationships
      3. Examples of Association Navigation
    3. Appendix Summary
  22. B Java SE 8 Packages
    1. Core Packages
    2. Integration Packages
    3. User Interface Packages
    4. Security Packages
    5. XML-based Packages
    6. Temporal Packages
  23. C Java Keywords
  24. D Bracket Conventions
    1. Java Bracket Conventions
    2. Miscellaneous Bracket Conventions
  25. E Unicode Standard
    1. ASCII Punctuation Characters
  26. F Pseudo-code Algorithms
    1. Implementing Statement-Related Algorithms from Pseudo-code
      1. Pseudo-code Algorithms
      2. Pseudo-code Algorithms and Java
  27. G Unified Modeling Language
    1. Recognizing Representations of Significant UML Elements
      1. Classes, Abstract Classes, and Interface Diagrams
      2. Attributes and Operations
      3. Visibility Modifiers
  28. Recognizing Representations of UML Associations
    1. Graphic Paths
    2. Relationship Specifiers
  29. H Functional Interfaces
    1. Specific-Purpose FIs
    2. General-Purpose FIs
  30. I About the Download
    1. System Requirements
    2. McGraw-Hill Professional Media Center Download
    3. Oracle Press Practice Exam Software
      1. Installing the Practice Exam Software
      2. Running the Practice Exam Software
      3. Practice Exam Software Features
      4. Removing Installation
      5. Help
    4. Enterprise Architect Project File
    5. Code Samples
    6. Technical Support
      1. Windows 8 Troubleshooting
      2. McGraw-Hill Education Content Support
  31. Glossary
  32. Index

Product information

  • Title: OCA Java SE 8 Programmer I Study Guide (Exam 1Z0-808), 3rd Edition
  • Author(s):
  • Release date: September 2015
  • Publisher(s): McGraw-Hill
  • ISBN: 9781259587535