Java compiler automatically imports two packages: java. lang and the current package . The Constants class is located in the same package as the AutomaticImports which is referring to its version member.
Read moreWhy we should not use import *?
Using import * in python programs is considered a bad habit because this way you are polluting your namespace , the import * statement imports all the functions and classes into your own namespace, which may clash with the functions you define or functions of other libraries that you import.
Read moreDoes Java Util import everything?
I updated my answer to clarify. The * imports all classes and interfaces in the package .20 Ara 2012
Read more