All About Class NegativeArraySizeException in Java



NegativeArraySizeException is thrown by an application when the code tries to create an array with negative size. The structure of the class NegativeArraySizeException  is given as :


public class java.lang.NegativeArraySizeException extends java.lang.RuntimeException{
//constructor
public NegativeArraySizeException();
//constructs an empty NegativeArraySizeException object that is an object with no message specified.
public NegativeArraySizeException(String message);
//constructs an NegativeArraySizeException object with the message specified.

}
 
All About Class NegativeArraySizeException in Java All About Class NegativeArraySizeException in Java Reviewed by Animesh Chatterjee on September 18, 2018 Rating: 5

No comments:

Powered by Blogger.