this keyword in java

The “this” keyword is used to refer to the current instance of a class. Example: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public class Employee  {     int age;     public Employee(int age)     {        this.age = age;     […]

Share this article on
< Previous