OCA Java SE 8 Programmer I

The OCA Java SE 8 Programmer I is the first of the two exams you have to perform to become a Java SE 8 Expert. Here you can find the complete exam objectives.

  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; run a Java programm from the command line, including console output
    4. Import other Java packages to make them accessible in your code
    5. Compare and contrast the features and components of Java, such as platform independence, object orientation, encapsulation and so on
  2. Working with Java data types
    1. Declare and initializa variables (including casting of primitive data types)
    2. Differentiate between object reference variables and primitive variables
    3. Know how to read and write to object fields
    4. Explain an object’s lifecycle (creation, «deference by reassignment», and garbage collection)
    5. Develop code that uses wrapper classes such as Boolean, Double and Integer
  3. Using Operators and decision constructs
    1. Use Java operators, including parentheses to override operator precedence
    2. Test equality between Strings and other objects using == and equals()
    3. Create if and if/else and ternary constructs
    4. Use a switch statement
  4. Creating and using arrays
    1. Declare, instantiate, initialize, and use a one-dimensional array
    2. Declare, instantiate, initialize and use a multidimensional array
  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. Working with methods and encapsulation
    1. Create methods with arguments and return values, including overloaded methods
    2. Apply the static keyword to methods and fields
    3. Create and overload constructors, including impact on default constructors
    4. Apply access modifiers
    5. Apply encapsulation principles to a class
    6. Determine the effect on object references and primitive values when they are passed into methods that change the values
  7. Working with inheritance
    1. Describe inheritance and its benefits
    2. Develop code that demonstrates the use of polymorphism, including overriding and object type versus reference type
    3. Determine when casting is necessary
    4. Use super and this to access objects and constructors
    5. Use abstract classes and interfaces
  8. Handling exceptions
    1. Differentiate among checked exceptions, unchecked exceptions, and errors
    2. Create a try-catch block and determine how exceptions alter normal program flow
    3. Describe the advantages of exception handling
    4. Create and invoke a method that throws an exception
    5. Recognize common exception classes (such as NullPointerException, ArithmeticException, ArrayIndexOutOfBoundException, ClassCastException)
  9. Working with selected classes from the Java API
    1. Manipulate data using the StringBuilder class and its methods
    2. Creating and manipulating Strings
    3. Create and manipulate clendar using classes from java.time.LocalDateTime, java.time.LocalDate, java.time.LocalTime, java.time.format.DateTimeFormatter and java.time.Period
    4. Declare and use an ArrayList of given type
    5. Write a simple lambda expression that consumes a lambda predicate expression

Deja una respuesta