English

The access specifier that gives visibility to the world and to the objects is ______.

Advertisements
Advertisements

Question

The access specifier that gives visibility to the world and to the objects is ______.

Options

  • default

  • private

  • public

  • protected

MCQ
Fill in the Blanks
Advertisements

Solution

The access specifier that gives visibility to the world and to the objects is public.

Explanation:

The public access specifier offers the highest level of visibility in Java. It allows a class, method, or variable to be accessed from absolutely anywhere in the application, meaning any other class or object in the entire project ("the world") can see and use it. 
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Encapsulation - Exercises [Page 147]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 6 Encapsulation
Exercises | Q 1. (i) | Page 147
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×