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:

Verified
Correct Answer:
Verified
Related Questions
Q1: A new element is added to an
Q3: The E get(int index)method of the List
Q4: The size of an array-based list such
Q5: If a new element is added to
Q6: What is the difference between the Iterator
Q7: The position of an item within a
Q8: The capacity of an array-based list such
Q9: Assume an array-based list implemented by a
Q10: Assume an array-based list implemented by a
Q11: Assume an array-based list implemented by a