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?
