Loading…
Loading…
A 20-question mixed review of OCP Java 21 Chapter 2: precedence and evaluation order, increment and decrement, numeric promotion, casting and overflow, compound assignment, equality, instanceof, short-circuit logic and the ternary operator.
A mixed review of Chapter 2: Operators. Take it after finishing the chapter, from precedence and unary operators to equality, logical and ternary operators.
Several questions combine rules from different articles, as the real exam does. All questions follow Java 21 rules. Aim for at least 15 out of 20 (75%) before moving on to Chapter 3.
Quiz path: step 12. Take the quizzes in this order, after reading each article.
Previous quiz: Equality, Relational, Logical and Ternary Operators (OCP 21)
Next quiz: if/else, Pattern Matching for instanceof and Flow Scoping (OCP 21)
20 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.