Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Monday, November 19, 2007

java Object Operators

co.fMember. The f field or method of object or class co.
x instanceof cotrue if the object x is an instance of class co, or is an instance of the class of co.
a[i]Array element access.
s + tString concatentation if one or both operands are Strings.
x == ytrue if x and y refer to the same object, otherwise false (even if values of the objects are the same).
x != yAs above for inequality.
comparisonCompare object values with .equals() or .compareTo()
x = yAssignment copies the reference, not the object.

No comments:

Post a Comment

Archives