Advertisements
Advertisements
प्रश्न
The most restricted access specifier is:
पर्याय
default
private
public
protected
MCQ
Advertisements
उत्तर
private
Explanation:
The private access modifier provides the maximum level of data security in Java. It hides variables or methods from the entire application, making them accessible only within the boundaries of the specific class where they are declared.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Encapsulation - Exercises [पृष्ठ १४८]
