मराठी

The most restrictive access specifier is ______.

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 [पृष्ठ ९०]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 3 User-Defined Methods
Exercises | Q 1. (ii) | पृष्ठ ९०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×