Which of the following access specifiers will make a member accessible only within its own class?

ICSE Class 10 Computer Applications PYQ · 2025 Improvement · Section A

1(ix)1 Mark · 2025 · Section A · 2025 Improvement

Which of the following access specifiers will make a member accessible only within its own class?

Show SolutionHide Solution↓

private

Reason — In Java, the private access specifier restricts a member’s visibility so it can be accessed only within the same class where it is declared.

← Previous questionNext question →

Browse the free Computer Applications sample bank