Java.Lang Namespace

Classes

AbstractMethodError

Thrown by the VM when an abstract method is called.

AbstractStringBuilder
ArithmeticException

Thrown when the an invalid arithmetic operation is attempted.

ArrayIndexOutOfBoundsException

Thrown when the an array is indexed with a value less than zero, or greater than or equal to the size of the array.

ArrayStoreException

Thrown when a program attempts to store an element of an incompatible type in an array.

AssertionError

Thrown when an assertion has failed.

Boolean

The wrapper for the primitive type boolean.

BootstrapMethodError
Byte

The wrapper for the primitive type byte.

Character

The wrapper for the primitive type char.

Character.Subset
Character.UnicodeBlock

Represents a block of Unicode characters, as defined by the Unicode 4.0.1 specification.

Character.UnicodeScript
Class

The in-memory representation of a Java class.

ClassCastException

Thrown when a program attempts to cast a an object to a type with which it is not compatible.

ClassCircularityError

Thrown when the VM notices that an attempt is made to load a class which would directly or indirectly inherit from one of its subclasses.

ClassFormatError

Thrown 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.

ClassLoader

Loads classes and resources from a repository.

ClassNotFoundException

Thrown when a class loader is unable to find a class.

CloneNotSupportedException

Thrown when a program attempts to clone an object which does not support the ICloneable interface.

Compiler

Does nothing on Android.

Deprecated

Annotation type used to mark program elements that should no longer be used by programmers.

DeprecatedAttribute
Double

The wrapper for the primitive type double.

Enum

The superclass of all enumerated types.

EnumConstantNotPresentException

Thrown 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.

ExceptionInInitializerError

Thrown when an exception occurs during class initialization.

Float

The wrapper for the primitive type float.

FunctionalInterfaceAttribute
IAppendableExtensions
ICharSequenceExtensions
IllegalAccessError

Thrown when the runtime notices that a program tries to access a class or member which is not accessible from where it is referenced.

IllegalAccessException

Thrown when a program attempts to access a field or method which is not accessible from the location where the reference is made.

IllegalArgumentException

Thrown when a method is invoked with an argument which it can not reasonably deal with.

IllegalMonitorStateException

Thrown 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.

IllegalStateException

Thrown when an action is attempted at a time when the VM is not in the correct state.

IllegalThreadStateException

Thrown 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.

IndexOutOfBoundsException

Thrown when a program attempts to access a value in an indexable collection using a value which is outside of the range of valid indices.

InheritableThreadLocal

A thread-local variable whose value is passed from parent to child thread.

InstantiationError

Thrown 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.

InstantiationException

Thrown when a program attempts to access a constructor which is not accessible from the location where the reference is made.

Integer

The wrapper for the primitive type int.

InternalError

Thrown when the VM notices that it has gotten into an undefined state.

InterruptedException

Thrown when a waiting thread is activated before the condition it was waiting for has been satisfied.

JavaSystem

Provides 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.

Long

The wrapper for the primitive type long.

Math

Class Math provides basic math constants and operations such as trigonometric functions, hyperbolic functions, exponential, logarithms, etc.

NegativeArraySizeException

Thrown when an attempt is made to create an array with a size of less than zero.

NoClassDefFoundError

Thrown when the VM is unable to locate a class which it has been asked to load.

NoSuchFieldError

Thrown when the VM notices that a program tries to reference, on a class or object, a field that does not exist.

NoSuchFieldException

Thrown when the VM notices that a program tries to reference, on a class or object, a field that does not exist.

NoSuchMethodError

Thrown when the VM notices that a program tries to reference, on a class or object, a method that does not exist.

NoSuchMethodException

Thrown when the VM notices that a program tries to reference, on a class or object, a method that does not exist.

NullPointerException

Thrown 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.

Number

The abstract superclass of the classes which represent numeric base types (that is Byte, Short, Integer, Long, Float, and Double.

NumberFormatException

Thrown when an invalid value is passed to a string-to-number conversion method.

Object

The root class of the Java class hierarchy.

OutOfMemoryError

Thrown when a request for memory is made that can not be satisfied using the available platform resources.

Override

Annotation type used to mark methods that override a method declaration in a superclass.

OverrideAttribute
Package

Contains information about a Java package.

Process

Represents an external process.

ProcessBuilder

Creates operating system processes.

ProcessBuilder.Redirect
ProcessBuilder.Redirect.Type
ReflectiveOperationException

Superclass of exceptions related to reflection.

Runnable
Runtime

Allows 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.

RuntimePermission

Legacy security code; do not use.

SafeVarargsAttribute
SecurityException

Thrown when a security manager check fails.

SecurityManager

Legacy security code; do not use.

Short

The wrapper for the primitive type short.

StackOverflowError

Thrown when the depth of the stack of the running program exceeds some platform or VM specific limit.

StackTraceElement

A representation of a single stack frame.

StrictMath

Class StrictMath provides basic math constants and operations such as trigonometric functions, hyperbolic functions, exponential, logarithms, etc.

String

An immutable sequence of UTF-16 chars.

StringBuffer

A modifiable ICharSequence for use in creating strings, where all accesses are synchronized.

StringBuilder

A modifiable ICharSequence for use in creating strings.

StringIndexOutOfBoundsException

Thrown when the a string is indexed with a value less than zero, or greater than or equal to the size of the array.

SuppressWarnings

Annotation type used to indicate that the compiler should not issue the specified warnings for the marked program element.

SuppressWarningsAttribute
Thread

A Thread is a concurrent unit of execution.

Thread.State

A representation of a thread's state.

ThreadDeath

ThreadDeath is thrown when a thread stops executing.

ThreadGroup

ThreadGroup is a means of organizing threads into a hierarchical structure.

ThreadLocal

Implements a thread-local storage, that is, a variable for which each thread has its own value.

Throwable

The superclass of all classes which can be thrown by the VM.

TypeNotPresentException

Thrown 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.

UnknownError

Thrown when the VM must throw an error which does not match any known exceptional condition.

UnsatisfiedLinkError

Thrown when an attempt is made to invoke a native for which an implementation could not be found.

UnsupportedClassVersionError

Thrown when an attempt is made to load a class with a format version that is not supported by the VM.

UnsupportedOperationException

Thrown when an unsupported operation is attempted.

VerifyError

Thrown 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.

Void

Placeholder class for the Java keyword void.

Interfaces

IAppendable

Declares methods to append characters or character sequences.

IAutoCloseable

Defines an interface for classes that can (or need to) be closed once they are not used any longer.

ICharSequence

This interface represents an ordered set of characters and defines the methods to probe them.

ICloneable

This (empty) interface must be implemented by all classes that wish to support cloning.

IComparable

This interface should be implemented by all classes that wish to define a natural order of their instances.

IDeprecated

Annotation type used to mark program elements that should no longer be used by programmers.

IFunctionalInterface
IIterable

Instances of classes that implement this interface can be used with the enhanced for loop.

IOverride

Annotation type used to mark methods that override a method declaration in a superclass.

IReadable

Represents a sequence of characters that can be incrementally read (copied) into a CharBuffer.

IRunnable

Represents a command that can be executed.

ISafeVarargs

Claims to the compiler that the annotation target does nothing potentially unsafe to its varargs argument.

ISuppressWarnings

Annotation type used to indicate that the compiler should not issue the specified warnings for the marked program element.

Thread.IUncaughtExceptionHandler

Implemented by objects that want to handle cases where a thread is being terminated by an uncaught exception.