[Chapter 25] 25.38 java.lang.NegativeArraySizeException (JDK 1.0)

#

| Chapter 25 The java.lang Package |

## 25.38 java.lang.NegativeArraySizeException (JDK 1.0)

###

Signals an attempt to allocate an array with fewer than zero elements.

    public class NegativeArraySizeException extends RuntimeException {
        // Public Constructors
                public NegativeArraySizeException();
                public NegativeArraySizeException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException->NegativeArraySizeException

### Thrown By:

Array.newInstance()

java.lang.Math (JDK 1.0) |  | java.lang.NoClassDefFoundError (JDK 1.0)