Advertisements
Advertisements
प्रश्न
The most restrictive access specifier is ______.
विकल्प
private
public
protected
default
MCQ
रिक्त स्थान भरें
Advertisements
उत्तर
The most restrictive access specifier is private.
Explanation:
This is the most restrictive access modifier in Java. Any member (variable or method) marked as private can only be accessed within the exact same class in which it is declared. It is completely hidden from subclasses, other classes in the same package, and external packages.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: User-Defined Methods - Exercises [पृष्ठ ९०]
