Correct option is E
In Java, the
public keyword is used to define members of a class that are universally visible. It provides the highest level of access, allowing the member to be accessed from any other class.
Important Key Points:
1.
Access Modifiers: Define the scope of a member in object-oriented programming.
2. Public members are accessible across all classes and packages.
3. Other access modifiers include
private,
protected, and default (no keyword).
Knowledge Booster:
·
Dollar Symbol $: Used in generated class names but not for access modifiers.
·
Protected: Limits access to the same package and subclasses.
·
Default (No Modifier): Limits access to the same package.