Why doesn\'t Java need to import classes like Integer, String, etc. while it needs to import other classes?
Because, they belongs to java.lang.* package. And, it is implicitly import by the compiler. If you do, then it won't complain you.
java.lang.*