Vidyalelo
Java Programming · Q6

Constructors and Methods

Programming · Java Programming · question 6

Q6

Which access modifier is used for a method that can be accessed from any class in the same package?

A.
public
B.
private
C.
protected
D.
package-private (no modifier)
Answer

Answer: Option D

Solution

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