Java Programming/Keywords/this

is a Java keyword. It contains the current object reference.
 * 1) Solves ambiguity between instance variables and parameters.
 * 2) Used to pass current object as a parameter to another method.

Syntax: .method; or .variable;

Example #1 for case 1:

Example #2 for case 1: