Java Packages (Cont.)


The java.lang Package
Many packages are provided by Java. This slide gives an example of the Java packages, the java.lang package which provides classes that are fundamental to Java programs. Its most important classes are Object, which is the root of the class hierarchy, and Class, instances of which represent classes at run time. There is one exception to the import rule: all classes in the java.lang package are imported by default.





      Let sleeping dogs lie.