this keyword in java | use of this keyword in java |

Опубликовано: 07 Август 2026
на канале: LearningPointAabid
54
6

There can be a lot of usage of Java this keyword. In Java, this is a reference variable that refers to the current object.
This is reference variable
Usage of Java this keyword
1) this can be used to refer current class instance variable.
2) this can be used to invoke current class method(implicity)
3) this() can be used to invoke current class constructor
4) this can be passed as an argument in the method call
5) this can be passed as argument in the constructor call
6) this can be used to return the current class instance from the method
source code link :-https://drive.google.com/file/d/1tA-F...
previous video link :-   • access modifier in java | java access modi...