posted 18 years ago
The default implementation of equals() method in Object class returns 'true' only if the object is compared with itself, that is, as if the equality operator == had been used to compare aliases to the object.
In the given code Two different objects are created. Hence not equal.
Regards
Naresh