What is the use of the keyword 'this' in Java programming?
Java Classes
8 Likes
Answer
The 'this' keyword refers to the current object in a function or constructor. It is primarily used to resolve the conflict between method parameters and instance variables/fields.