MCQ Single Best Answer Moderate

QWhat does the "this" keyword refer to in Java?

ID: #23883 ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL 63 views
Question Info
#23883Q ID
ModerateDifficulty
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOLTopic

Choose the Best Option

Click any option to instantly check if you're 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: Option 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

Challenge a friend or share with your study group.