public class NegativeArraySizeException extends RuntimeException
int i = -1; int[] array = new int[i];
Constructor and Description |
---|
NegativeArraySizeException()
Create an exception without a message.
|
NegativeArraySizeException(String s)
Create an exception with a message.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NegativeArraySizeException()
public NegativeArraySizeException(String s)
s
- the message