Which of the following is an example of an access modifier in Java?
A) void
B) this
C) public
D) constructor
Answer: C) public
Explanation: In Java, public is an access modifier that allows a class, method, or variable to be accessible from any other class in the program. Other access modifiers include private (accessible only within the same class) and protected (accessible within the same package and by subclasses).