Chapter 3. Operators and Assignments

OBJECTIVES

This chapter helps you prepare for the exam by covering the following objectives from the “Operators and Assignments” section of the Sun testing objectives:

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

  • You must know how to use Java operators to evaluate expressions and determine the results of Java statements. Many of the test questions involve analysis of sample code.

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.

  • The equals() method ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams 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.