


THE OCP EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:
Handling Date, Time, Text, Numeric and Boolean Values
Covered in: Building Blocks, Operators, Core APIs
Use primitives and wrapper classes to evaluate arithmetic and boolean expressions.
Apply the Math API, operator precedence, type promotion, and casting rules.
Manipulate text using String, StringBuilder, and text blocks.
Handle date, time, duration, period, instant, and time-zone objects using the Date-Time API, including daylight saving time.
Controlling Program Flow
Covered in: Making Decisions
Create program control flow constructs using if/else, switch statements and expressions.
Implement loops (for, while, do-while) and use break and continue statements to control flow.
Utilizing Java Object-Oriented Approach
Covered in: Building Blocks, Making Decisions, Methods, Class Design
Declare and instantiate Java objects, including nested class objects, and explain object lifecycle: creation, reference reassignment, and garbage collection.
Understand variable scopes, apply encapsulation, and create immutable objects.
Use local variable type inference.
Create classes and records; define and use instance and static fields, methods, constructors, and initializers.
Implement inheritance, including abstract and sealed types, and override methods (including Object class methods).
Use polymorphism and distinguish between object type and reference type.
Perform reference type casting.
Apply pattern matching with the instanceof operator and enhanced switch expressions.
Implement method overloading, including var-args.
Working with Arrays and Collections
Covered in: Core APIs
Create and use Java arrays.
Work with List, Set, Map, and Deque collections.
Add, remove, update, retrieve, and sort elements in collections.