java.lang
Class Object
java.lang.Object
- public class Object
The Object
class is the superclass of all other classes.
Method Summary |
boolean |
equals(Object obj)
Compare this object to another object. |
Object
public Object()
equals
public boolean equals(Object obj)
- Compare this object to another object. Returns true only if
this
and obj
refer to the same object.
This method should be overriden in subclasses that require different
comparison semantics.
- Parameters:
obj
- the object to comapare to.- Returns:
true
if this object is the same as the paramter obj
.