KnowledgeBoat Logo
|

Computer Applications

What is the use of the keyword 'this' in Java programming?

Java Classes

7 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.

Answered By

3 Likes


Related Questions