Package java.lang
Provides classes that are fundamental to the design of the Java Card technology
subset of the Java programming language. The classes in this package are derived
from java.lang
in the standard Java programming language and represent
the core functionality required by the Java Card Virtual Machine. This core
functionality is represented by the Object
class, which is the base
class for all Java language classes and the Throwable
class, which
is the base class for the exception and runtime exception classes.
The exceptions and runtime exceptions that are included in this package are
those that can be thrown by the Java Card Virtual Machine. They represent only
a subset of the exceptions available in java.lang
in the standard Java
programming language.
-
Class Summary Class Description Object ClassObject
is the root of the Java Card platform class hierarchy.Throwable The Throwable class is the superclass of all errors and exceptions in the Java Card platform's subset of the Java programming language. -
Exception Summary Exception Description ArithmeticException A Java Card runtime environment-owned instance ofArithmeticException
is thrown when an exceptional arithmetic condition has occurred.ArrayIndexOutOfBoundsException A Java Card runtime environment-owned instance ofArrayIndexOutOfBoundsException
is thrown to indicate that an array has been accessed with an illegal index.ArrayStoreException A Java Card runtime environment-owned instance ofArrayStoreException
is thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.ClassCastException A Java Card runtime environment-owned instance ofClassCastException
is thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.Exception The classException
and its subclasses are a form ofThrowable
that indicate conditions that a reasonable applet might want to catch.IndexOutOfBoundsException A Java Card runtime environment-owned instance ofIndexOutOfBoundsException
is thrown to indicate that an index of some sort (such as to an array) is out of range.NegativeArraySizeException A Java Card runtime environment-owned instance ofNegativeArraySizeException
is thrown if an applet tries to create an array with negative size.NullPointerException A Java Card runtime environment-owned instance ofNullPointerException
is thrown when an applet attempts to usenull
in a case where an object is required.RuntimeException RuntimeException
is the superclass of those exceptions that can be thrown during the normal operation of the Java Card Virtual Machine.SecurityException A Java Card runtime environment-owned instance ofSecurityException
is thrown by the Java Card Virtual Machine to indicate a security violation.