Saved Bookmarks
| 1. |
Which of these exceptions will be thrown if we declare an array with negative size?(a) IllegalArrayException(b) IllegalArraySizeExeption(c) NegativeArrayException(d) NegativeArraySizeExeptionThe 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 |
|
Answer» Right choice is (d) NegativeArraySizeExeption |
|