Solved

A Constructor for an Array-Based List Takes an Integer Parameter,to

Question 2

Multiple Choice

A constructor for an array-based list takes an integer parameter,to be used as the capacity of the internal array of the list.Which exception should the constructor throw if its parameter is zero or negative?


A) IllegalArgumentException
B) IllegalStateException
C) RuntimeException
D) NullPointerException

Correct Answer:

verifed

Verified

Related Questions