Class with no access modifiers

Explain, if a class is declared with no access modifiers, where the class can be accessed?

E

Expert

Verified

A class which is defined without having any access modifiers is said to have the package access. This explains that class may only be accessed through other classes and interfaces which are defined in the same package.

   Related Questions in Computer Networking

©TutorsGlobe All rights reserved 2022-2023.