Java / Object, Class and Package
Can a Java source file have more than one class declaration?
Yes. However only one class can be declared as public and the java file name should be exactly same as the public class name along with .java extension.
More Related questions...