Java   View all facts   Glossary   Help
member > instance member > instance method > method that is declared in Object class
Next instance methodsleep    Upinstance method    Previous instance methodjoin   

method that is declared in Object class comparison table
Subject write for is a subtopic of see also have purpose is have example override have have default implementation return has definition
clone Example Methods to create objects from other objects of the same type 
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
a method in a superclass with the same namespecification a value that is of the return type of the method or a subtype of that typeA method that creates objects from other objects of the same type
equals Example Methods to test whether two objects are equal i.e. they contain the same data, but are not necessarily the same objectoverridden
 boolean b = aPostalCode.equals(anotherPostalCode);
a method in a superclass with the same namespecification a value that is of the return type of the method or a subtype of that typeA method that compares two objects for equality
finalize Garbage Collectionfinalize method  
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
a method in a superclass with the same namea comment at its head if the method is non-obvious a value that is of the return type of the method or a subtype of that type 
getClass Example Methods to increase efficiency by eliminating dynamic method lookup //Returns the name of the class of the object called key
String name = key.getClass().getName();
by any methodspecification a runtime representation of the class of the object 
notify Example Methods   
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
a method in a superclass with the same namespecification a value that is of the return type of the method or a subtype of that type 
notifyAll Example Methods   
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
a method in a superclass with the same namespecification a value that is of the return type of the method or a subtype of that type 
toStringevery class you createExample Methods to convert any kind of object into a string 
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
a method in a superclass with the same namespecificationthe name of the class followed by a hexadecimal code that distinguishes one instance from anothera String representation of the object to which it is applied 
wait method Threads   
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
a method in a superclass with the same namea comment at its head if the method is non-obvious a value that is of the return type of the method or a subtype of that type 

Next instance methodsleep    Upinstance method    Previous instance methodjoin