1 | Source code of a Java program consists of one or more compilation units, implemented as files with .java extension. |
2 | Each compilation unit can contain: |
3 | - A package statement |
4 | - Import statements |
5 | - Class declarations |
6 | - Interface declarations |