[Solved] Why We Don’t Need To Import the java.lang package to use the Integer Class(Wrapper Classes) In Java [duplicate]


This is defined in Chapter 7 of the Java Language Specification (JLS):

A compilation unit […] automatically imports all of the public types declared in the predefined package java.lang.

solved Why We Don’t Need To Import the java.lang package to use the Integer Class(Wrapper Classes) In Java [duplicate]