import keyword in Java

import is a Java keyword. It declares a Java class to use in the code below the import statement. Once a Java class is declared, then the class name can be used in the code without specifying the package the class belongs to. Use the '*' character to declare all the classes belonging to the package.
```
import package.JavaClass;
import package.*;
```
The static import construct allows unqualified access to static members without inheriting from the type containing the static members. Once the static members have been imported, they may be used without qualification.
```
//with static import
import static java.lang.Math.PI;
double r = cos(PI * theta);

//without static import
import java.long.Math
double r = cos(Math.PI*theta)
```