看看wiki关于java.lang包的描述:
The Java package interfaces closely tied to the language and runtime system. This includes the root classes that form the class hierarchy, types tied to the language definition, basic exceptions, math functions, threading, security functions, as well as some information on the underlying native system. This package contains 22 of 32 Error classes provided in JDK 6.
The main classes and interfaces in java.lang are:
enumeration classes (as of J2SE 5.0).
reflection system.
string manipulation (StringBuilder as of J2SE 5.0).
enhanced for loop (as of J2SE 5.0).
dynamic loading of classes, creation of external processes, host environment inquiries such as the time of day, and enforcement of security policies.
sine, cosine, and square root (StrictMath as of J2SE 1.3).
The basic exception classes thrown for language-level and other common exceptions.
Classes in java.lang are automatically imported into every source file.
1) Object 1
2) String 1
3) AbstractStringBuilder 1
4) StringBuffer 1
5) StringBuilder 1
6) Boolean 2
7) Byte 2
8) Double 2
9) Float 2
10) Integer 2
11) Long 2
12) Short 2
13) Thread 2
14) ThreadLocal 2
15) Enum 3
16) Throwable 3
17) Error 3
18) Exception 3
19) Class 4
20) ClassLoader 4
21) Compiler 4
22) System 4
23) Package 4
24) Void 4