Originally posted by rathi ji:
equals() method is only overridden in String class otherwise it is same as equally operator ( == )[ January 12, 2005: Message edited by: rathi ji ]
Check, for instance, equals() in
Integer.
As I've noticed in other posts, I think
you should brush up on the difference between "==" and "equals()". The first is used when referring to the same object in the memory by two references, the second when two different objects (occupying different memory locations) have equal values.