Adding Java studies I came across a special package, java.lang
, where the author of the book mentions that we do not need to import
of this package.
There is a package special in the Java world called java.lang. This package is special because it is imported automatically. You can still type this package in an import declaration, but you do not have to do that. "OCA: Oracle Certified Associate Java SE 8 Programmer I Study"
I would like to understand why only the java.lang.*
package is the only one in which we do not need to import when we are developing in Java and what does it differ from other packages we need to import?