Home » openjdk-7 » java » lang »

java.lang

Sub Packages:

java.lang.annotation   Core classes including wrappers for primitive types, classes, packages and class loaders, representations of the system, processes, threads and the core exception hierarchy.  
java.lang.instrument   Provides services that allow Java programming language agents to instrument programs running on the JVM.  
java.lang.invoke    
java.lang.management   Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.  
java.lang.ref   Provides reference-object classes, which support a limited degree of interaction with the garbage collector.  
java.lang.reflect    

Interfaces:

Appendable   An object to which char sequences and values can be appended.  code | html
AutoCloseable   A resource that must be closed when it is no longer needed.  code | html
CharSequence   A CharSequence is a readable sequence of char values.  code | html
Cloneable   A class implements the Cloneable interface to indicate to the java.lang.Object#clone() method that it is legal for that method to make a field-for-field copy of instances of that class.  code | html
Comparable   This interface imposes a total ordering on the objects of each class that implements it.  code | html
Iterable   Implementing this interface allows an object to be the target of the "foreach" statement.  code | html
Readable   A Readable is a source of characters.  code | html
Runnable   The Runnable interface should be implemented by any class whose instances are intended to be executed by a thread.  code | html
Thread.UncaughtExceptionHandler   Interface for handlers invoked when a Thread abruptly terminates due to an uncaught exception.  code | html

Abstract Classes:

AbstractStringBuilder   A mutable sequence of characters.  code | html
CharacterData     code | html
ClassLoader   A class loader is an object that is responsible for loading classes.  code | html
ClassValue   Lazily associate a computed value with (potentially) every type.  code | html
Enum   This is the common base class of all Java language enumeration types.  code | html
Number   The abstract class Number is the superclass of classes BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, and Short code | html
Process   The ProcessBuilder#start() and Runtime.exec methods create a native process and return an instance of a subclass of {@code Process} that can be used to control the process and obtain information about it.  code | html
ProcessBuilder.Redirect   Represents a source of subprocess input or a destination of subprocess output.  code | html
Throwable.PrintStreamOrWriter   Wrapper class for PrintStream and PrintWriter to enable a single implementation of printStackTrace.  code | html
VirtualMachineError   Thrown to indicate that the Java Virtual Machine is broken or has run out of resources necessary for it to continue operating.  code | html

Classes:

Character.UnicodeScript   A family of character subsets representing the character scripts defined in the Unicode Standard Annex #24: Script Names code | html
ProcessBuilder.Redirect.Type   The type of a Redirect code | html
Thread.State   A thread state.  code | html
AbstractMethodError   Thrown when an application tries to call an abstract method.  code | html
ApplicationShutdownHooks     code | html
ArithmeticException   Thrown when an exceptional arithmetic condition has occurred.  code | html
ArrayIndexOutOfBoundsException   Thrown to indicate that an array has been accessed with an illegal index.  code | html
ArrayStoreException   Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.  code | html
AssertionError   Thrown to indicate that an assertion has failed.  code | html
AssertionStatusDirectives   A collection of assertion status directives (such as "enable assertions in package p" or "disable assertions in class c").  code | html
Boolean   The Boolean class wraps a value of the primitive type {@code boolean} in an object.  code | html
BootstrapMethodError   Thrown to indicate that an {@code invokedynamic} instruction has failed to find its bootstrap method, or the bootstrap method has failed to provide a {@linkplain java.lang.invoke.CallSite call site} with a {@linkplain java.lang.invoke.CallSite#getTarget target} of the correct {@linkplain java.lang.invoke.MethodHandle#type method type}.  code | html
Byte   The {@code Byte} class wraps a value of primitive type {@code byte} in an object.  code | html
Byte.ByteCache     code | html
Character   The {@code Character} class wraps a value of the primitive type {@code char} in an object.  code | html
Character.CharacterCache     code | html
Character.Subset   Instances of this class represent particular subsets of the Unicode character set.  code | html
Character.UnicodeBlock   A family of character subsets representing the character blocks in the Unicode specification.  code | html
CharacterName     code | html
Class   Instances of the class {@code Class} represent classes and interfaces in a running Java application.  code | html
Class.EnclosingMethodInfo     code | html
Class.MethodArray     code | html
ClassCastException   Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.  code | html
ClassCircularityError   Thrown when the Java Virtual Machine detects a circularity in the superclass hierarchy of a class being loaded.  code | html
ClassFormatError   Thrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file.  code | html
ClassLoader.NativeLibrary   The inner class NativeLibrary denotes a loaded native library instance.  code | html
ClassLoader.ParallelLoaders   Encapsulates the set of parallel capable loader types.  code | html
ClassNotFoundException   Thrown when an application tries to load in a class through its string name using:
  • The forName method in class Class
code | html
ClassValue.ClassValueMap     code | html
CloneNotSupportedException   Thrown to indicate that the clone method in class Object has been called to clone an object, but that the object's class does not implement the Cloneable interface.  code | html
Compiler   The {@code Compiler} class is provided to support Java-to-native-code compilers and related services.  code | html
ConcreteProcess     code | html
ConcreteProcess     code | html
ConcreteProcess     code | html
ConditionalSpecialCasing   This is a utility class for String.toLowerCase() and String.toUpperCase(), that handles special casing with conditions.  code | html
ConditionalSpecialCasing.Entry   An internal class that represents an entry in the Special Casing Properties.  code | html
Deprecated   A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists.  code | html
Double   The {@code Double} class wraps a value of the primitive type {@code double} in an object.  code | html
EMThreadSupport     code | html
EnumConstantNotPresentException   Thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name.  code | html
Error   An {@code Error} is a subclass of {@code Throwable} that indicates serious problems that a reasonable application should not try to catch.  code | html
Exception   The class {@code Exception} and its subclasses are a form of {@code Throwable} that indicates conditions that a reasonable application might want to catch.  code | html
ExceptionInInitializerError   Signals that an unexpected exception has occurred in a static initializer.  code | html
FinalizerThread   Dedicated finalizer thread.  code | html
FinalizerThread.FinalizerStartLock     code | html
FinalizerThread.FinalizerWaitFinishLock     code | html
FinalizerThread.FinalizerWorkLock     code | html
Float   The {@code Float} class wraps a value of primitive type {@code float} in an object.  code | html
IllegalAccessError   Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to.  code | html
IllegalAccessException   An IllegalAccessException is thrown when an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, but the currently executing method does not have access to the definition of the specified class, field, method or constructor.  code | html
IllegalArgumentException   Thrown to indicate that a method has been passed an illegal or inappropriate argument.  code | html
IllegalMonitorStateException   Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.  code | html
IllegalStateException   Signals that a method has been invoked at an illegal or inappropriate time.  code | html
IllegalThreadStateException   Thrown to indicate that a thread is not in an appropriate state for the requested operation.  code | html
IncompatibleClassChangeError   Thrown when an incompatible class change has occurred to some class definition.  code | html
IndexOutOfBoundsException   Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.  code | html
InheritableThreadLocal   This class extends ThreadLocal to provide inheritance of values from parent thread to child thread: when a child thread is created, the child receives initial values for all inheritable thread-local variables for which the parent has values.  code | html
InstantiationError   Thrown when an application tries to use the Java new construct to instantiate an abstract class or an interface.  code | html
InstantiationException   Thrown when an application tries to create an instance of a class using the {@code newInstance} method in class {@code Class}, but the specified class object cannot be instantiated.  code | html
Integer   The {@code Integer} class wraps a value of the primitive type {@code int} in an object.  code | html
Integer.IntegerCache   Cache to support the object identity semantics of autoboxing for values between -128 and 127 (inclusive) as required by JLS.  code | html
InternalError   Thrown to indicate some unexpected internal error has occurred in the Java Virtual Machine.  code | html
InterruptedException   Thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.  code | html
LinkageError   Subclasses of {@code LinkageError} indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.  code | html
Long   The {@code Long} class wraps a value of the primitive type {@code long} in an object.  code | html
Long.LongCache     code | html
Math   The class {@code Math} contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.  code | html
NegativeArraySizeException   Thrown if an application tries to create an array with negative size.  code | html
NoClassDefFoundError   Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.  code | html
NoSuchFieldError   Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field.  code | html
NoSuchFieldException   Signals that the class doesn't have a field of a specified name.  code | html
NoSuchMethodError   Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.  code | html
NoSuchMethodException   Thrown when a particular method cannot be found.  code | html
NullPointerException   Thrown when an application attempts to use {@code null} in a case where an object is required.  code | html
NumberFormatException   Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format.  code | html
Object   Class {@code Object} is the root of the class hierarchy.  code | html
OutOfMemoryError   Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.  code | html
Override   Indicates that a method declaration is intended to override a method declaration in a supertype.  code | html
Package   {@code Package} objects contain version information about the implementation and specification of a Java package.  code | html
ProcessBuilder   This class is used to create operating system processes.  code | html
ProcessBuilder.NullInputStream   Implements a null input stream code | html
ProcessBuilder.NullOutputStream   Implements a null output stream code | html
ProcessEnvironment     code | html
ProcessEnvironment.CheckedEntry     code | html
ProcessEnvironment.CheckedEntrySet     code | html
ProcessEnvironment.CheckedKeySet     code | html
ProcessEnvironment.CheckedValues     code | html
ProcessEnvironment.EntryComparator     code | html
ProcessEnvironment.NameComparator     code | html
ProcessImpl     code | html
ReflectiveOperationException   Common superclass of exceptions thrown by reflective operations in core reflection.  code | html
Runtime   Every Java application has a single instance of class Runtime that allows the application to interface with the environment in which the application is running.  code | html
RuntimeException   {@code RuntimeException} is the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.  code | html
RuntimePermission   This class is for runtime permissions.  code | html
SafeVarargs   A programmer assertion that the body of the annotated method or constructor does not perform potentially unsafe operations on its varargs parameter.  code | html
SecurityException   Thrown by the security manager to indicate a security violation.  code | html
SecurityManager   The security manager is a class that allows applications to implement a security policy.  code | html
Short   The {@code Short} class wraps a value of primitive type {@code short} in an object.  code | html
Short.ShortCache     code | html
Shutdown   Package-private utility class containing data structures and logic governing the virtual-machine shutdown sequence.  code | html
Shutdown.Lock     code | html
StackOverflowError   Thrown when a stack overflow occurs because an application recurses too deeply.  code | html
StackTraceElement   An element in a stack trace, as returned by Throwable#getStackTrace() code | html
StrictMath   The class {@code StrictMath} contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.  code | html
String   The String class represents character strings.  code | html
String.CaseInsensitiveComparator     code | html
StringBuffer   A thread-safe, mutable sequence of characters.  code | html
StringBuilder   A mutable sequence of characters.  code | html
StringCoding   Utility class for string encoding and decoding.  code | html
StringCoding.StringDecoder     code | html
StringCoding.StringEncoder     code | html
StringIndexOutOfBoundsException   Thrown by String methods to indicate that an index is either negative or greater than the size of the string.  code | html
SuppressWarnings   Indicates that the named compiler warnings should be suppressed in the annotated element (and in all program elements contained in the annotated element).  code | html
System   The System class contains several useful class fields and methods.  code | html
SystemClassLoaderAction     code | html
Terminator   Package-private utility class for setting up and tearing down platform-specific support for termination-triggered shutdowns.  code | html
Thread   A thread is a thread of execution in a program.  code | html
Thread.Caches   cache of subclass security audit results  code | html
Thread.WeakClassKey   Weak key for Class objects.  code | html
ThreadDeath   An instance of {@code ThreadDeath} is thrown in the victim thread when the (deprecated) Thread#stop() method is invoked.  code | html
ThreadGroup   A thread group represents a set of threads.  code | html
ThreadLocal   This class provides thread-local variables.  code | html
ThreadLocal.ThreadLocalMap   ThreadLocalMap is a customized hash map suitable only for maintaining thread local values.  code | html
ThreadLocal.ThreadLocalMap.Entry   The entries in this hash map extend WeakReference, using its main ref field as the key (which is always a ThreadLocal object).  code | html
ThreadWeakRef     code | html
Throwable   The {@code Throwable} class is the superclass of all errors and exceptions in the Java language.  code | html
Throwable.SentinelHolder   Holder class to defer initializing sentinel objects only used for serialization.  code | html
Throwable.WrappedPrintStream     code | html
Throwable.WrappedPrintWriter     code | html
TypeNotPresentException   Thrown when an application tries to access a type using a string representing the type's name, but no definition for the type with the specified name can be found.  code | html
UnknownError   Thrown when an unknown but serious exception has occurred in the Java Virtual Machine.  code | html
UnsatisfiedLinkError   Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native code | html
UnsupportedClassVersionError   Thrown when the Java Virtual Machine attempts to read a class file and determines that the major and minor version numbers in the file are not supported.  code | html
UnsupportedOperationException   Thrown to indicate that the requested operation is not supported.

This class is a member of the Java Collections Framework

code | html
VMClass     code | html
VMClassLoader   java.lang.VMClassLoader is a package-private helper for VMs to implement on behalf of java.lang.ClassLoader.  code | html
VMClassRegistry   Provides the class information methods required for the Class implementation, and class loading/resolution methods for the ClassLoader implementation.  code | html
VMCompiler   This class is just a per-VM reflection of java.lang.Compiler.  code | html
VMDouble   Code relocated from java.lang.Double by  code | html
VMExecutionEngine   Provides the methods to interact with VM Execution Engine that are used by different classes from the java.lang package, such as System, Runtime.  code | html
VMFloat   Code relocated from java.lang.Float by  code | html
VMMath     code | html
VMMemoryManager   Provides the methods to interact with VM Memory Manager that are used by different classes from the java.lang package, such as Object, System, Runtime.  code | html
VMObject   Object is the ultimate superclass of every class (excepting interfaces).  code | html
VMProcess   Represents one external process.  code | html
VMProcess.ProcessThread     code | html
VMRuntime   VMRuntime represents the interface to the Virtual Machine.  code | html
VMSecurityManager   VMSecurityManager is a helper class for SecurityManager the VM must implement.  code | html
VMStart   This class does the following:
  • starts Finalizer and Execution Manager helper threads. 
  • code | html
    VMStart.DefaultShutDownHook     code | html
    VMString   Code relocated from java.lang.String by  code | html
    VMSystem   VMSystem is a package-private helper class for System that the VM must implement.  code | html
    VMThread   VM interface for Thread of executable code.  code | html
    VMThreadManager   Provides the methods to interact with VM Thread Manager that are used by Thread class and Object synchronization implementation.  code | html
    VMThrowable   VM dependant state and support methods for Throwable.  code | html
    VerifyError   Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem.  code | html
    Void   The {@code Void} class is an uninstantiable placeholder class to hold a reference to the {@code Class} object representing the Java keyword void.  code | html