13. Access Control
13.1. Java Source File Structure
A Java source file can have the following elements that, if present, must be specified in the following order:
- An optional package declaration to specify a package name.
- Zero or more import declarations.
- Any number of top-level type declarations. Class, enum, and interface declarations are collectively known as type declarations.
- In Java, at the most one public class declaration per source file can be defined. If a public class is defined, the file name must match this public class.
// Example Code here