In Java, if you do not explicitly mention an access modifier to a class it is accessible throughout the same package. The members of the class also have access modifiers like public and protected and the members or methods of the class are also can be accessed throughout the package when the access modifier is not explicitly mentioned.