MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL

Q What does the "this" keyword refer to in Java?

Question ID
#23883
Subchapter
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A It refers to the current instance of the class
  • B It is used to declare a constant variable
  • C It represents the return value of a function
  • D It is used to call a static method
Correct Answer: A

Explanation

Explanation:

 

The this keyword in Java is used within an instance method or constructor to refer to the current object of the class.

Share This Question

Share this MCQ with your friends or study group.