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.
-
ClassDescriptionA Java Card runtime environment-owned instance of
ArithmeticExceptionis thrown when an exceptional arithmetic condition has occurred.A Java Card runtime environment-owned instance ofArrayIndexOutOfBoundsExceptionis thrown to indicate that an array has been accessed with an illegal index.A Java Card runtime environment-owned instance ofArrayStoreExceptionis thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects.A Java Card runtime environment-owned instance ofClassCastExceptionis thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.The classExceptionand its subclasses are a form ofThrowablethat indicate conditions that a reasonable applet might want to catch.A Java Card runtime environment-owned instance ofIndexOutOfBoundsExceptionis thrown to indicate that an index of some sort (such as to an array) is out of range.A Java Card runtime environment-owned instance ofNegativeArraySizeExceptionis thrown if an applet tries to create an array with negative size.A Java Card runtime environment-owned instance ofNullPointerExceptionis thrown when an applet attempts to usenullin a case where an object is required.ClassObjectis the root of the Java Card platform class hierarchy.RuntimeExceptionis the superclass of those exceptions that can be thrown during the normal operation of the Java Card Virtual Machine.A Java Card runtime environment-owned instance ofSecurityExceptionis thrown by the Java Card Virtual Machine to indicate a security violation.The Throwable class is the superclass of all errors and exceptions in the Java Card platform's subset of the Java programming language.