Java   View all facts   Glossary   Help
member > instance member > instance method > method that is declared in Object class > equals
Next method that is declared in Object classfinalize    Upmethod that is declared in Object class    Previous method that is declared in Object classclone   

equals comparison table
Subject have is is a kind of is a subtopic of have example is an instance of have purpose has definition
method that is declared in Object classa comment at its head if the method is non-obvious instance methodMethods
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
   
equalsspecificationoverridden Example Methods
 boolean b = aPostalCode.equals(anotherPostalCode);
method that is declared in Object classto test whether two objects are equal i.e. they contain the same data, but are not necessarily the same objectA method that compares two objects for equality

Next method that is declared in Object classfinalize    Upmethod that is declared in Object class    Previous method that is declared in Object classclone