Next:
static
Up:
Object-Oriented Programming
Previous:
Constructor Overloading
Contents
static
,
this
,
Super
&
final
keywords
Subsections
static
Java static variable
Java static method
Java static block
this
keyword in Java
To refer current class instance variable
To invoke current class method
To invoke current class constructor
To pass as an argument in the method
To pass as argument in the constructor call
To return current class instance
Super
Keyword in Java
super
is used to refer immediate parent class instance variable.
super
can be used to invoke parent class method
super
is used to invoke parent class constructor
final
keyword
Java final variable
Java final method
Java final class
Blank or uninitialized final variable
static blank final variable
final parameter