What is the "this" Keyword?

The "this" keyword is a reference variable that refers to the current object of a class.

Whenever an object calls a method, "this" refers to that particular object. It is commonly used to access instance variables and methods of the current object.

Program Example

public class SuperMarket {