Android Guides | Samples

Java.Lang Namespace

Remarks

 

Classes

TypeReason
AbstractMethodErrorThrown by the VM when an abstract method is called.
AbstractStringBuilder
ArithmeticExceptionThrown when the an invalid arithmetic operation is attempted.
ArrayIndexOutOfBoundsExceptionThrown when the an array is indexed with a value less than zero, or greater than or equal to the size of the array.
ArrayStoreExceptionThrown when a program attempts to store an element of an incompatible type in an array.
AssertionErrorThrown when an assertion has failed.
BooleanThe wrapper for the primitive type boolean.
ByteThe wrapper for the primitive type byte.
CharacterThe wrapper for the primitive type char.
Character+Subset
Character+UnicodeBlockRepresents a block of Unicode characters, as defined by the Unicode 4.0.1 specification.
ClassThe in-memory representation of a Java class.
ClassCastExceptionThrown when a program attempts to cast a an object to a type with which it is not compatible.
ClassCircularityErrorThrown when the VM notices that an attempt is made to load a class which would directly or indirectly inherit from one of its subclasses.
ClassFormatErrorThrown by a class loader when a class file has an illegal format or if the data that it contains can not be interpreted as a class.
ClassLoaderLoads classes and resources from a repository.
ClassNotFoundExceptionThrown when a class loader is unable to find a class.
CloneNotSupportedExceptionThrown when a program attempts to clone an object which does not support the ICloneable interface.
CompilerDoes nothing on Android.
DeprecatedAnnotation type used to mark program elements that should no longer be used by programmers.
DeprecatedAttribute
DoubleThe wrapper for the primitive type double.
EnumThe superclass of all enumerated types.
EnumConstantNotPresentExceptionThrown if an enum constant does not exist for a particular name.
Error Error is the superclass of all classes that represent unrecoverable errors.
Exception Exception is the superclass of all classes that represent recoverable exceptions.
ExceptionInInitializerErrorThrown when an exception occurs during class initialization.
FloatThe wrapper for the primitive type float.
IAppendableDeclares methods to append characters or character sequences.
IAppendableExtensions
IAutoCloseableDefines an interface for classes that can (or need to) be closed once they are not used any longer.
ICharSequenceThis interface represents an ordered set of characters and defines the methods to probe them.
ICharSequenceExtensions
ICloneableThis (empty) interface must be implemented by all classes that wish to support cloning.
IComparableThis interface should be implemented by all classes that wish to define a natural order of their instances.
IDeprecatedAnnotation type used to mark program elements that should no longer be used by programmers.
IIterableInstances of classes that implement this interface can be used with the enhanced for loop.
IllegalAccessErrorThrown when the runtime notices that a program tries to access a class or member which is not accessible from where it is referenced.
IllegalAccessExceptionThrown when a program attempts to access a field or method which is not accessible from the location where the reference is made.
IllegalArgumentExceptionThrown when a method is invoked with an argument which it can not reasonably deal with.
IllegalMonitorStateExceptionThrown when a monitor operation is attempted when the monitor is not in the correct state, for example when a thread attempts to exit a monitor which it does not own.
IllegalStateExceptionThrown when an action is attempted at a time when the VM is not in the correct state.
IllegalThreadStateExceptionThrown when an operation is attempted which is not possible given the state that the executing thread is in.
IncompatibleClassChangeError IncompatibleClassChangeError is the superclass of all classes which represent errors that occur when inconsistent class files are loaded into the same running image.
IndexOutOfBoundsExceptionThrown when a program attempts to access a value in an indexable collection using a value which is outside of the range of valid indices.
InheritableThreadLocalA thread-local variable whose value is passed from parent to child thread.
InstantiationErrorThrown when the VM notices that a program tries to create a new instance of a class which has no visible constructors from the location where new is invoked.
InstantiationExceptionThrown when a program attempts to access a constructor which is not accessible from the location where the reference is made.
IntegerThe wrapper for the primitive type int.
InternalErrorThrown when the VM notices that it has gotten into an undefined state.
InterruptedExceptionThrown when a waiting thread is activated before the condition it was waiting for has been satisfied.
IOverrideAnnotation type used to mark methods that override a method declaration in a superclass.
IReadableRepresents a sequence of characters that can be incrementally read (copied) into a CharBuffer.
IRunnableRepresents a command that can be executed.
ISafeVarargsClaims to the compiler that the annotation target does nothing potentially unsafe to its varargs argument.
ISuppressWarningsAnnotation type used to indicate that the compiler should not issue the specified warnings for the marked program element.
JavaSystemProvides access to system-related information and resources including standard input and output.
LinkageError LinkageError is the superclass of all error classes that occur when loading and linking class files.
LongThe wrapper for the primitive type long.
MathClass Math provides basic math constants and operations such as trigonometric functions, hyperbolic functions, exponential, logarithms, etc.
NegativeArraySizeExceptionThrown when an attempt is made to create an array with a size of less than zero.
NoClassDefFoundErrorThrown when the VM is unable to locate a class which it has been asked to load.
NoSuchFieldErrorThrown when the VM notices that a program tries to reference, on a class or object, a field that does not exist.
NoSuchFieldExceptionThrown when the VM notices that a program tries to reference, on a class or object, a field that does not exist.
NoSuchMethodErrorThrown when the VM notices that a program tries to reference, on a class or object, a method that does not exist.
NoSuchMethodExceptionThrown when the VM notices that a program tries to reference, on a class or object, a method that does not exist.
NullPointerExceptionThrown when a program tries to access a field or method of an object or an element of an array when there is no instance or array to use, that is if the object or array points to null.
NumberThe abstract superclass of the classes which represent numeric base types (that is Byte, Short, Integer, Long, Float, and Double.
NumberFormatExceptionThrown when an invalid value is passed to a string-to-number conversion method.
ObjectThe root class of the Java class hierarchy.
OutOfMemoryErrorThrown when a request for memory is made that can not be satisfied using the available platform resources.
OverrideAnnotation type used to mark methods that override a method declaration in a superclass.
OverrideAttribute
PackageContains information about a Java package.
ProcessRepresents an external process.
ProcessBuilderCreates operating system processes.
ReflectiveOperationExceptionSuperclass of exceptions related to reflection.
Runnable
RuntimeAllows Java applications to interface with the environment in which they are running.
RuntimeException RuntimeException is the superclass of all classes that represent exceptional conditions which occur as a result of executing an application in the VM.
RuntimePermissionLegacy security code; do not use.
SafeVarargsAttribute
SecurityExceptionThrown when a security manager check fails.
SecurityManagerLegacy security code; do not use.
ShortThe wrapper for the primitive type short.
StackOverflowErrorThrown when the depth of the stack of the running program exceeds some platform or VM specific limit.
StackTraceElementA representation of a single stack frame.
StrictMathClass StrictMath provides basic math constants and operations such as trigonometric functions, hyperbolic functions, exponential, logarithms, etc.
StringAn immutable sequence of UTF-16 chars.
StringBufferA modifiable ICharSequence for use in creating strings, where all accesses are synchronized.
StringBuilderA modifiable ICharSequence for use in creating strings.
StringIndexOutOfBoundsExceptionThrown when the a string is indexed with a value less than zero, or greater than or equal to the size of the array.
SuppressWarningsAnnotation type used to indicate that the compiler should not issue the specified warnings for the marked program element.
SuppressWarningsAttribute
ThreadA Thread is a concurrent unit of execution.
Thread+IUncaughtExceptionHandlerImplemented by objects that want to handle cases where a thread is being terminated by an uncaught exception.
Thread+StateA representation of a thread's state.
ThreadDeathThreadDeath is thrown when a thread stops executing.
ThreadGroup ThreadGroup is a means of organizing threads into a hierarchical structure.
ThreadLocalImplements a thread-local storage, that is, a variable for which each thread has its own value.
ThrowableThe superclass of all classes which can be thrown by the VM.
TypeNotPresentExceptionThrown when a program tries to access a class, interface, enum or annotation type through a string that contains the type's name and the type cannot be found.
UnknownErrorThrown when the VM must throw an error which does not match any known exceptional condition.
UnsatisfiedLinkErrorThrown when an attempt is made to invoke a native for which an implementation could not be found.
UnsupportedClassVersionErrorThrown when an attempt is made to load a class with a format version that is not supported by the VM.
UnsupportedOperationExceptionThrown when an unsupported operation is attempted.
VerifyErrorThrown when the VM notices that an attempt is made to load a class which does not pass the class verification phase.
VirtualMachineError VirtualMachineError is the superclass of all error classes that occur during the operation of the VM.
VoidPlaceholder class for the Java keyword void.