this keyword in Java
- 19th Aug 2016
- 0
- 14502
- this in java this keyword in java using the this keyword in java When should I use "this" in java When should I use this in a class Why use this keyword in Java
“this” is a reference to the current object within the instance method or constructor. Current object means the object which has called the method or the constructor. We can say “this” is a keyword which holds the address of the current object. We can use “this” to call any member of the current object. Compiler […]