English

Which of the following is NOT an access specifier? - Computer Applications

Advertisements
Advertisements

Question

Which of the following is NOT an access specifier?

Options

  • private

  • protected

  • package

  • public

MCQ
Advertisements

Solution

package

Explanation:

Java access specifiers (keywords) are private, protected and public. The term “package” is not a keyword access specifier; the default (package-private) access exists, but has no “package” keyword.

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×