MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2022 PYQ

Q The access modifier that gives least accessibility is:

Question ID
#23970
Subchapter
ICSE Computer Application - Class X - 2022 PYQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A private
  • B public
  • C protected
  • D package
Correct Answer: A

Explanation

private

Reason — A data member or member method declared as private is only accessible inside the class in which it is declared. Thus, it gives the least accessibility.

Share This Question

Share this MCQ with your friends or study group.