文档介绍:×÷Õߣºjeru
email: jeru@
ÈÕÆÚ£º7/3/2001 9:56:15 AM
Objective 2)
Determine the result of applying the boolean equals(Object) method to objects of bination of the classes and .
The equals method can be considered to perform a parison of the value of an object, whereas the == operator performs a parison. The equals pares what an object points to rather than the pointer itself (if we can admit that Java has pointers).
The equals method applied to a String, however that String was created, performs a character by parison.
Objective 3)
In an expression involving the operators & | && || and variables of known values state which operands are evaluated and the value of the expression.
Objective 4)
Determine the effect upon objects and primitive values of passing variables into methods and performing assignments or other modifying operations in that method.
Unary Numeric Promotion
Contexts:
¡¤ Operand of the unary arithmetic operators + and ¨C
¡¤ Operand of the unary integer bit-plement operator ~
¡¤ During array creation, for example new int[x], where the dimension expression x must evaluate to an int value.
¡¤ Indexing array elements, for example table[¡®a¡¯], where the index expression must evaluate to an int value.
¡¤ Individual operands of the shift operators.
Binary numeric promotion
Contexts:
¡¤ Operands of arit