java.lang

Class NegativeArraySizeException

public class NegativeArraySizeException extends RuntimeException

Thrown when an attempt is made to create an array with a negative size. For example:
 int i = -1;
 int[] array = new int[i];
 

UNKNOWN: updated to 1.4

Constructor Summary
NegativeArraySizeException()
Create an exception without a message.
NegativeArraySizeException(String s)
Create an exception with a message.

Constructor Detail

NegativeArraySizeException

public NegativeArraySizeException()
Create an exception without a message.

NegativeArraySizeException

public NegativeArraySizeException(String s)
Create an exception with a message.

Parameters: s the message