Which access modifiers allow access to the field/method of a public class to other classes that are in the same package?
Explanation
Public, private and default (package-private) access modifiers allow other classes in the same package to access methods and fields of a class

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes