You are previewing OCA Java SE 7 Programmer Study Guide (Exam 1Z0-803).
O'Reilly logo
OCA Java SE 7 Programmer Study Guide (Exam 1Z0-803)

Book Description

This book is designed for people who want to pass the OCA Java SE 7 Programmer exam (Exam 1Z0-803). It comes with a Java refresher, self-tests, and a full mock exam.

Table of Contents

  1. Introduction
    1. Registering for the Exam
    2. Taking the Exam
    3. Exam Topics
    4. About This Book
    5. Downloading Program Examples
  2. Chapter 1: Language Fundamentals
    1. 1.1 ASCII and Unicode
    2. 1.2 Separators
    3. 1.3 Primitives
    4. 1.4 Variables
    5. 1.5 Constants
    6. 1.6 Literals
    7. 1.7 Primitive Conversions
    8. 1.8 Operators
    9. 1.9 Comments
    10. Self Test
    11. Self Test Answers
  3. Chapter 2: Statements
    1. 2.1 Overview
    2. 2.2 The if Statement
    3. 2.3 The while Statement
    4. 2.4 The do-while Statement
    5. 2.5 The for Statement
    6. 2.6 The break Statement
    7. 2.7 The continue Statement
    8. 2.8 The switch Statement
    9. Self Test
    10. Self Test Answers
  4. Chapter 3: Objects and Classes
    1. 3.1 What Is An Object?
    2. 3.2 Java Classes
    3. 3.3 Creating An Object
    4. 3.4 The null Keyword
    5. 3.5 Memory Allocation for Objects
    6. 3.6 Java Packages
    7. 3.7 Encapsulation and Access Control
    8. 3.8 The this Keyword
    9. 3.9 Using Other Classes
    10. 3.10 Final Variables
    11. 3.11 Static Members
    12. 3.12 Static Final Variables
    13. 3.13 Static import
    14. 3.14 Variable Scope
    15. 3.15 Method Overloading
    16. 3.16 Static Factory Methods
    17. 3.17 By Value or By Reference?
    18. 3.18 Loading, Linking, and Initialization
    19. 3.19 Object Creation Initialization
    20. 3.20 The Garbage Collector
    21. Self Test
    22. Self Test Answers
  5. Chapter 4: Core Classes
    1. 4.1 java.lang.Object
    2. 4.2 java.lang.String
    3. 4.3 java.lang.StringBuffer and java.lang.StringBuilder
    4. 4.4 Primitive Wrappers
    5. 4.5 java.lang.Class
    6. 4.6 java.lang.System
    7. Self Test
    8. Self Test Answers
  6. Chapter 5: Arrays
    1. 5.1 Array Overview
    2. 5.2 Iterating over an Array
    3. 5.3 The java.util.Arrays Class
    4. 5.4 Changing an Array Size
    5. 5.5 Searching An Array
    6. 5.6 Passing a String Array to main
    7. 5.7 Multidimensional Arrays
    8. 5.8 ArrayList
    9. Self Test
    10. Self Test Answers
  7. Chapter 6: Inheritance
    1. 6.1 Inheritance Overview
    2. 6.2 Accessibility
    3. 6.3 Method Overriding
    4. 6.4 Calling the Constructors of the Superclass
    5. 6.5 Calling the Hidden Members of the Superclass
    6. 6.6 Type Casting
    7. 6.7 Final Classes
    8. 6.8 The instanceof Operator
    9. Self Test
    10. Self Test Answers
  8. Chapter 7: Interfaces, Abstract Classes and Polymorphism
    1. 7.1 The Concept of Interface
    2. 7.2 The Interface, Technically Speaking
    3. 7.3 Abstract Classes
    4. 7.4 Polymorphism
    5. 7.5 Polymorphism in Action
    6. Self Test
    7. Self Test Answers
  9. Chapter 8: Error Handling
    1. 8.1 Catching Exceptions
    2. 8.2 try without catch
    3. 8.3 Catching Multiple Exceptions
    4. 8.4 The try-with-resources Statement
    5. 8.5 The java.lang.Exception Class
    6. 8.6 Throwing an Exception from a Method
    7. 8.7 User-Defined Exceptions
    8. 8.8 Note on Exception Handling
    9. Self Test
    10. Self Test Answers
  10. Appendix A: Mock Exam
  11. Appendix B: Mock Exam Answers