Java Language -- Program Structure
Java Language -- Program Structure
- Source code of a Java program consists of one or more compilation units, implemented as files with .java extension.
- Each compilation unit can contain:
- A package statement
- Import statements
- Class declarations
- Interface declarations