posted 5 years ago
There can be at most one top-level public class per source file, not per application. There can be multiple classes per source file. Other enclosed classes in a source file may be public. The Java Language Spec may give you further info, depending on what you're looking for. Why do you ask?