dcsimg

Why do I not have to import the classes in the java.lang package?

John Zukowski

The classes in the java.lang package are so important that the compiler implicitly imports all the classes there. This ensures classes in the unnamed package are not accidently used instead of the key classes and interfaces.