Apply Your Knowledge

Review Questions

1:What is the % operator?
2:What is the difference between the prefix and postfix forms of the ++ operator?
3:What are the legal operands of the instanceof operator?
4:What is the difference between the boolean & operator and the && operator?
5:What is the difference between the >> and >>> operators?
6:How is it possible for two String objects with identical values not to be equal under the == operator?
7:Is &&= a valid Java operator?
8:Is the ternary operator written x : y ? z or x ? y : z ?
9:Can a double value be cast to a byte?
10:Can a Byte object be cast to a double value?
11:Which arithmetic operations can result in the throwing of an ArithmeticException?
12:How is rounding performed under integer division?

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.