An import declaration allows a static member or a named type to be referred to by a simple name that consists of a single identifier. Without the use of an appropriate import declaration,the only way to refer to a type declared in another package,or a static member of another type,is to use a fully qualified name.
A single-type-import declaration imports a single named type,by mentioning its canonical name.
A type-import-on-demand declaration imports all the accessible types of a named type or package as needed. It is a compile time error to import a type from the unnamed package.
A single static import declaration imports all accessible static members with a given name from a type,by giving its canonical name.
A static-import-on-demand declaration imports all accessible static members of a named type as needed.