Chapter 9Working with Selected Classes from the Java API

THE OCA EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:

  • Working with Selected classes from the Java API 
    • Manipulate data using the StringBuilder class and its methods
    • Create and manipulate Strings
    • Create and manipulate calendar data using classes from java.time.LocalDateTime,  java.time.LocalDate, java.time.LocalTime, java.time.format.DateTimeFormatter, java.time.Period 
    • Declare and use an ArrayList of a given type
    • Write a simple Lambda expression that consumes a Lambda Predicate expression
  1. What is the best reason for using StringBuilder instead of String?

Get OCA / OCP Java SE 8 Programmer Practice Tests now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.