Which of these exceptions will be thrown if we declare an array with negative size?
(a) IllegalArrayException
(b) IllegalArraySizeExeption
(c) NegativeArrayException
(d) NegativeArraySizeExeption
The question was posed to me in a job interview.
Asked question is from Java’s Built in Exceptions topic in portion Exploring java.lang & java.io of Java