posted 16 years ago
Hi Friends,
I tried following code and to my surprise it works and prints output 'true'
Signature of method equals is-
public boolean equals(Object obj)
How come it is allowing a primitive parameter?
Is the primitive parameter getting boxed to Object? :roll: