हिंदी

The most restricted access specifier is:

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 [पृष्ठ १४८]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 6 Encapsulation
Exercises | Q 1. (viii) | पृष्ठ १४८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×