


Oracle Certified Professional (OCP) Java SE 17: Exam Topics Covered
This practice test is designed to assess your knowledge across the core domains of the OCP Java SE 17 Developer exam. The covered objectives include:
1. Working with Java Data Types and APIs
Primitives, Wrappers, and Operations: Evaluate arithmetic and boolean expressions using primitives, wrapper classes, and the Math API, with a focus on type casting, promotion, and operator precedence.
Text and Date-Time Manipulation: Manipulate and process text using the String and StringBuilder classes. Manage date, time, time zones, and periods using the modern Java Date-Time API.
2. Controlling Program Flow
Implement conditional logic using if/else and switch statements and expressions.
Create iterative code using loops and control execution within them using break and continue.
3. Applying Object-Oriented Principles
Class Fundamentals: Declare and instantiate Java objects, including nested classes, and understand the object lifecycle from creation to garbage collection.
Core OOP Concepts: Design classes and records with fields, methods, and constructors. Implement core principles: inheritance, polymorphism, overloading, and encapsulation.
Abstraction and Design: Utilize interfaces, including functional interfaces, and apply techniques to create immutable objects.
4. Exception Handling
Implement robust error handling using try/catch/finally, try-with-resources, and multi-catch blocks.
Create and throw custom exceptions to manage application-specific error conditions.
5. Working with Arrays and Collections
Create and manipulate standard Java collections, including Arrays, List, Set, Map, and Deque.
Perform common operations such as adding, removing, updating, retrieving, and sorting elements.
6. Processing Data with Streams and Lambdas
Use lambda expressions and functional interfaces to process data pipelines with common stream operations: filtering, mapping, consuming, and sorting.
Perform advanced stream processing, including decomposition, reduction, concatenation, grouping, and partitioning on both sequential and parallel streams.