What is the purpose of the "this" keyword in Java?
A. To refer to the current object.
B. To create a new object.
C. To access a static variable.
D. To call a method or constructor in the superclass.
Answer:A
What is the purpose of the "this" keyword in Java?
A. To refer to the current object. B. To create a new object. C. To access a static variable. D. To call a method or constructor in the superclass.