Package java.lang
-
Interface Summary Interface Description AutoCloseable Defines an interface for classes that can (or need to) be closed once they are not used any longer.Comparable<T> This interface should be implemented by all classes that wish to define a natural order of their instances.Iterable<T> Instances of classes that implement this interface can be used with the enhanced for loop.Runnable Represents a command that can be executed. -
Class Summary Class Description Boolean The wrapper for the primitive typeboolean
.BString This is the base class for our optimized version of strings.Byte The wrapper for the primitive typebyte
.Character The wrapper for the primitive typechar
.Class<T> The in-memory representation of a Java class.Double The wrapper for the primitive typedouble
.Enum<E extends Enum<E>> The superclass of all enumerated types.Float The wrapper for the primitive typefloat
.Integer The wrapper for the primitive typeint
.Long The wrapper for the primitive typelong
.Math Class Math provides basic math constants and operations such as trigonometric functions, hyperbolic functions, exponential, logarithms, etc.Number Object The root class of the Java class hierarchy.Short The wrapper for the primitive typeshort
.String An immutable sequence of characters/code units (char
s).System Provides access to system-related information and resources including standard input and output.Throwable The superclass of all classes which can be thrown by the VM. -
Exception Summary Exception Description 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.ClassCastException Thrown when a program attempts to cast a an object to a type with which it is not compatible.ClassNotFoundException Thrown when an application tries to load in a class through its string name using: TheforName
method in classClass
.Exception Exception
is the superclass of all classes that represent recoverable exceptions.IllegalArgumentException Thrown when a method is invoked with an argument which it can not reasonably deal with.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.NegativeArraySizeException Thrown when an attempt is made to create an array with a size of less than zero.NoSuchFieldException Thrown when the VM notices that a program tries to reference, on a class or object, a field 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 tonull
.NumberFormatException Thrown when an invalid value is passed to a string-to-number conversion method.ReflectiveOperationException Superclass of exceptions related to reflection.RuntimeException RuntimeException
is the superclass of all classes that represent exceptional conditions which occur as a result of executing an application in the VM. -
Error Summary Error Description Error Error
is the superclass of all classes that represent unrecoverable errors.IncompatibleClassChangeError IncompatibleClassChangeError
is the superclass of all classes which represent errors that occur when inconsistent class files are loaded into the same running image.LinkageError LinkageError
is the superclass of all error classes that occur when loading and linking class files.NoSuchFieldError 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. -
Annotation Types Summary Annotation Type Description Deprecated Override SuppressWarnings