Multiple Choice
Assume an array-based list implemented by a class that uses the fields
String [ ] list;
Int nElements;
To represent the array of elements,and the number of elements currently stored.Assuming there is space
In the internal array,the code for adding a new item str to the end of the list is
A) list.add(str) ;
B) list[nElements] = str;
C) list[nElements] = str;nElements++;
D) nElements ++;list[nElements] = str;
Correct Answer:

Verified
Correct Answer:
Verified
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
Q12: Assume an array-based list implemented by a
Q13: Why does the Java Collections Framework define
Q14: Assume an array-based list implemented by a
Q15: The int indexOf(Object o)method of the List
Q16: The boolean contains(E element)method searches a ArrayList