Prev Next

Java / Package

Difference between import and static import.

The import allows the Java programmer to access classes of a package without package qualification whereas the static import feature allows accessing the static members of a class without the class qualification.

The import provides accessibility to classes and interfaces whereas static import provides accessibility to static members of the class.

More Related questions...

Show more question and Answers...


Comments & Discussions