Loading…
Loading…
Ten exam-style questions on operator kinds, precedence and associativity, left-to-right operand evaluation, the logical and bitwise complement, negation, and prefix and postfix increment and decrement, with explanations.
Practice questions for the article Java Operators: Types, Precedence and Unary Operators.
The questions follow Java 21 rules, as on the 1Z0-830 exam. For increment questions, write down each operand's value and the variable's new value as you go, left to right. Aim for at least 8 out of 10 before moving on.
Quiz path: step 9. Take the quizzes in this order, after reading each article.
Previous quiz: Chapter 1 Review: Java Building Blocks (OCP 21)
Next quiz: Arithmetic, Numeric Promotion, Casting and Assignment (OCP 21)
10 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.