What is the purpose of the 'this' keyword in Java?
Q1. What is the purpose of the 'this' keyword in Java?
Answer: To refer to the current object
Explanation: The 'this' keyword refers to the current object of the class, allowing for access to its members and resolution of naming conflicts.