this Keyword

 There can be a lot of usage of Java this keyword. In Java, this is a reference variable that refers to the current object.

Usage of Java this keyword

 this: to refer current class instance variable


usage of this() constructor call

Notes:Call to this() must be the first statement in constructor.



Comments