Question: are java classes public by default?
Answer: The default (i.e., the one with no modifier) is package-private, visible only to classes in the same package. ... If a top level class or interface type is not declared public, then it may be accessed only from within the package in which it is declared. So, a Java class is by default package-private.