Chapter 1Handling Date, Time, Text, Numeric and Boolean Values

  1. How many of the Duration, LocalDateTime, and LocalTime classes have the concept of a time zone?
    1. None
    2. One
    3. Two
    4. Three
  2. How many lines does this print?
    System.out.print("""
       "ape"
       "baboon"
       "gorilla"
       """);
    
    1. Three
    2. Four
    3. Five
    4. The code ...

Get OCP Oracle Certified Professional Java SE 17 Developer Practice Tests now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.