Solved

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

Question 11

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

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents