The import keyword makes one class or all classes in a package visible in the current Java source file. Imported classes can be referened without the use of fully-qualified class names.
import java.io.File; import java.net.*;
Many Java programmers use only specific import statements (no '*') to avoid ambiguity when multiple packages contain classes of the same name.