Enables accessing package classes and interfaces, furthermore fields and methods of them.
EXAMPLE FOR NORMAL IMPORTS:
After import, class(es) can be accessed by defining object(s) from.
In case the class contains static method that can be accessed without defining an instance first.
EXAMPLE FOR USING STATIC METHODS FROM IMPORTED CLASSES:
The same variations can be used but starting with "import static" instead of a simple "import". Doing so let us access the methods and fields without accessing the class itself or creating an instance from it.
Be aware: you can address things from a statically imported class with method names or field names only if no other used classes contain same namings.
Of course, accessing the class is still allowed.
For interfaces and inheriting, static import can not be used.
EXAMPLE FOR STATIC IMPORT: