Chapter 3. Operators and Assignments

Exam Objectives

  • Determine the result of applying any operator (including assignment operators and the instanceof operator) to operands of any type, class, scope, or accessibility, or any combination of these.

  • Determine the result of applying the boolean equals(Object) method to objects of any combination of the classes java.lang.String, java.lang.Boolean and java.lang.Object.

  • In an expression involving the operators &, |, &&, ||, and variables of known values, state which operands are evaluated and the value of the expression.

  • Determine the effect on objects and primitive values of passing variables into methods and performing assignments or other modifying operations in that method.

Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition 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.