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!
- Which of the following are true about Java operators and statements? (Choose three.)
- Both right-hand sides of the ternary expression are evaluated at runtime.
- A
switch
statement may contain at most onedefault
statement. - The post-increment operator (++) returns the value of the variable before the addition is applied.
- The logical operators (
|
) and (||
) are interchangeable, producing the same results at runtime. - The complement operator (
!
) operator may be applied to numeric expressions. - 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.