Java   View all facts   Glossary   Help
member > method > final method
Next methodfinalize method    Upmethod    Previous methoddeprecated method   

final method comparison table
Subject refer to define have part have return to be access is a subtopic of have example implement have syntax rule override hide is an instance of create have purpose place in access by have access modifier have access to have access mode be part of has part use belong to return declare operate on contain pass as
getClassthe object itself using the 'this' keywordits return typemethod signaturespecificationits caller from only one place which should be the last statementpublic except for those that will definitely need to be called from outside the packageall instance variables of all objects of its classExample Methods//Returns the name of the class of the object called key
String name = key.getClass().getName();
the behaviour of the objects in the class
bold = mandatory
italic = non-terminal
normal font = optional
by any methodinstance variables, class variables from other objectsmethod that is declared in Object classan object by instantiating a 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 definedother methods and variables in any class in the same package by defaultevery class variable of its class a classa block of implementation codethe super method to invoke a method declared in the superclassa classa runtime representation of the class of the objectpublic, protected or privatethe current object's instance variablesreturn statement unless it has a void return typean argument to a method or constructor

Next methodfinalize method    Upmethod    Previous methoddeprecated method