Java   View all facts   Glossary   Help
member > instance member > instance method > method that is declared in Object class > getClass
Upfinal method, method that is declared in Object class

getClass comparison table
Subject refer to have is a kind of is a subtopic of have example implement override is an instance of have purpose place in have access to be part of has definition return declare operate on
final method a comment at its head if the method is non-obviousmethodMethods by any method to increase efficiency by eliminating dynamic method lookup  a class or an objectA method that cannot be hidden or overriddena value that is of the return type of the method or a subtype of that type  
method that is declared in Object classthe object itself using the 'this' keyworda comment at its head if the method is non-obviousinstance methodMethods
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
the behaviour of the objects in the classa method in a superclass with the same name  a class such that there is no needless duplication of it, and such that it is useful in all the subclasses of the class in which it is definedevery class variable of its classa class a value that is of the return type of the method or a subtype of that typepublic, protected or privatethe current object's instance variables
getClassthe object itself using the 'this' keywordspecification Example Methods//Returns the name of the class of the object called key
String name = key.getClass().getName();
the behaviour of the objects in the classby any methodmethod that is declared in Object classto increase efficiency by eliminating dynamic method lookupa class such that there is no needless duplication of it, and such that it is useful in all the subclasses of the class in which it is definedevery class variable of its classa class a runtime representation of the class of the objectpublic, protected or privatethe current object's instance variables

Upfinal method, method that is declared in Object class