Programming MCQS - QUESTION DETAILS

What is the purpose of the 'this' keyword in Java?
A. Refer to the current object
B. Refer to the parent class
C. Refer to the child class
D. Refer to the global scope

'this' refers to the current object in Java.

Similar Questions

What is the role of the 'static' keyword in C?






What is Java?






How do you close a file in C?






Which operator is used to access the value pointed to by a pointer in C?






How do you include a header file in C?






What is the purpose of the 'throws' keyword in Java?






What is the purpose of the 'strcat' function in C?






What is the default value of a boolean variable in Java?






What is the purpose of the 'this' keyword in Java?






What is the output of printf("%s", "Hello" + 1);?