Vidyalelo
Java Programming · Q10

Declaration and Access Control

Programming · Java Programming · question 10

Q10

In Java, which access modifier allows a class member to be accessed from anywhere in the code?

A.
public
Answer
B.
protected
C.
private
D.
package-private

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board