Solved

A List Method Void Add(int Index,E X)seeking to Add an Element

Question 1

Multiple Choice

A list method void add(int index,E x) seeking to add an element x that is an object of a class E to a list,should throw an IndexOutOfBoundsException when


A) the index is negative,or greater than the size of the list
B) the index is negative,or greater than,or equal to,the size of the list
C) the index is greater than or equal to the size of the list
D) The element x falls outside of the bounds specified by the index

Correct Answer:

verifed

Verified

Related Questions