posted 17 years ago
You are right.
Wrapper class equals() method returns true,
if the argument is not null and arugement, invoking object must be same type, contains same value.
for example,
public boolean equals(Object obj) method of Byte class,
Compares this object to the specified object. The result is true if and only if the argument is not null and is a Byte object that contains the same byte value as this object