OCAJP 7 Exam Objectives

Section 1: Java Basics
  1. Define the scope of variables
  2. Define the structure of a Java class
  3. Create executable Java applications with a main method
Section 2: Working With Java Data Types
  1. Declare and initialize variables
  2. Differentiate between object reference variables and primitive variables
  3. Read or write to object fields
  4. Manipulate data using the StringBuilder class and its methods
Section 3: Create and manipulate strings
  1. Using Operators and Decision Constructs
  2. Use Java operators
  3. Use parentheses to override operator precedence
  4. Test equality between strings and other objects using == and equals ()
  5. Use the proper JDBC API to submit queries and read results from the database.
  6. Create if and if/else constructs
  7. Use a switch statement
Section 4: Creating and Using Arrays
  1. Declare, instantiate, initialize and use a one-dimensional array
  2. Declare, instantiate, initialize and use multi-dimensional array
  3. Declare and use an ArrayList
Section 5: Using Loop Constructs
  1. Create and use while loops
  2. Create and use for loops including the enhanced for loop
  3. Create and use do/while loops
  4. Compare loop constructs
  5. Use break and continue
  6. Select a resource bundle based on locale
Section 6: Working with Methods and Encapsulation
  1. Create methods with arguments and return values
  2. Apply the static keyword to methods and fields
  3. Create an overloaded method
  4. Differentiate between default and user-defined constructors
  5. Apply access modifiers
  6. Apply encapsulation principles to a class
  7. Determine the effect upon object references and primitive values when they are passed into methods that change the values
Section 7: Working with Inheritance
  1. Implement inheritance
  2. Develop code that demonstrates the use of polymorphism
  3. Differentiate between the type of a reference and the type of an object
  4. Determine when casting is necessary
  5. Use super and this to access objects and constructors
  6. Use abstract classes and interfaces
Section 8: Handling Exceptions
  1. Differentiate among checked exceptions, RuntimeExceptions and Errors
  2. Create a try-catch block and determine how exceptions alter normal program flow
  3. Describe what exceptions are used for in Java
  4. Invoke a method that throws an exception
  5. Recognize common exception classes and categories