img
Exploring java.lang
T
his chapter discusses thos e classes and interfaces defined by java.lang. As you know,
java.lang is automatically imported into all programs. It contains classes and interfaces
that are fundamental to virtually all of Java programming. It is Java's most widely
used package.
java.lang includes the following classes:
Boolean
InheritableThreadLocal
Runtime
System
Byte
Integer
RuntimePermission
Thread
Character
Long
SecurityManager
ThreadGroup
Class
Math
Shor t
ThreadLocal
ClassLoader
Number
StackTraceElement
Throwable
Compiler
Object
StrictMath
Void
Double
Package
String
Enum
Process
StringBuf fer
Float
ProcessBuilder
StringBuilder
There are also two classes defined by the Character class: Character.Subset and
Character.UnicodeBlock.
java.lang defines the following interfaces:
Appendable
Comparable
Runnable
CharSequence
Iterable
Cloneable
Readable
Several of the classes contained in java.lang contain deprecated methods, most dating
back to Java 1.0. These deprecated methods are still provided by Java to support an ever-
shrinking pool of legacy code and are not recommended for new code. Most of the deprecations
took place prior to Java SE 6, and these deprecated methods are not discussed here.
Search WWH :
Custom Search
Previous Page
Java SE 6 Topic Index
Next Page
Java SE 6 Bookmarks
Home