Why doesn\'t Java need to import classes like Integer, String, etc. while it needs to import other classes?
every class in java is in a package and if no package is defined then it is understood as in default package. And at the top of the package is java.lang.* so we don't need to import it an require to import other classes.