posted 22 years ago
a. o1.equals(o2) FALSE May or may not be true, depending on how equals() works for the class.
b. o1 == o2 FALSE Since o1 and o2 refer to different instances
c. o1.hashCode()==o2.hashCode() FALSE Depends on whether (a) is true or not
d. Nothing can be said about o1.equals(o2) DEPENDS on what "nothing" means. Obviously, I have said something about it in the explanation above. This option is ambiguous and could be stated better
e. Nothing can be said about o1==o2. FALSE see (b) above
Junilu