1.Package declaration
2.Import statements
3.Class, interface, and enum definitions
If no a package statement, import statement(s) must be the first line(s) in the source code file.
If no package or import statements, the class declaration must be the first in the source code file.
Import and package statements apply to all classes within a source code file.
There's no way to declare multiple classes in a file and have them in different packages, or use different imports.
package com;
import java.util.List;
public class MainClass{
private int iValue;
}