Chapter 14Practice Exam 3

Chapter 14 is the third and final practice exam chapter in the book. Make sure you have 90 minutes and scratch paper before you start. Good luck on both this chapter and the real exam!

  1. Which of the following are true about Java operators and statements? (Choose three.)
    1. Both right-hand sides of the ternary expression are evaluated at runtime.
    2. A switch statement may contain at most one default statement.
    3. The post-increment operator (++) returns the value of the variable before the addition is applied.
    4. The logical operators (|) and (||) are interchangeable, producing the same results at runtime.
    5. The complement operator (!) operator may be applied to numeric expressions.
    6. An assignment operator returns a value that ...

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.