**java.lang** ====Class NegativeArraySizeException ==== *[[javacard:java-card-api:object|java.lang.Object]] \\ *[[javacard:java-card-api:throwable|java.lang.Throwable]] \\ *[[javacard:java-card-api:exception|java.lang.Exception]] \\ *[[javacard:java-card-api:runtimeexception|java.lang.RuntimeException]] \\ ---- public class **NegativeArraySizeException**extends [[javacard:java-card-api:RuntimeException|RuntimeException]] A Java Card runtime environment-owned instance of NegativeArraySizeException is thrown if an applet tries to create an array with negative size. Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See //Runtime Environment Specification for the Java Card Platform//, section 6.2.1 for details. This Java Card platform class's functionality is a strict subset of the definition in the //JavaTM 2 Platform Standard Edition (J2SETM) API Specification//. ---- ^ Constructor Summary ^^ | **[[javacard:java-card-api:NegativeArraySizeException#NegativeArraySizeException()|NegativeArraySizeException]] **()          Constructs a NegativeArraySizeException. |   ^ Method Summary ^^   ^ Methods inherited from class java.lang.Object ^ | [[javacard:java-card-api:Object#equals(java.lang.Object)|equals]] |   ^ Constructor Detail ^ === NegativeArraySizeException === public **NegativeArraySizeException**() Constructs a NegativeArraySizeException.