Question 1
You can use a for-each loop to traverse all elements in a container object that implements ________.
◦ Iterable
◦ Collection
◦ Iterator
◦ ArrayList
Question 2
Which of the following statements are true?
◦ java.util.List inherits all the methods from java.util.Collection. Additionally, it contains new methods for manipulating a list.
◦ The AbstractList class provides a partial implementation for the List interface.
◦ LinkedList is a concrete implementation of List using a linked list. LinkedList contains all the methods in List and additional new methods for manipulating a linked list.
◦ ArrayList is a concrete implementation of List using an array.
◦ ListIterator is a subinterface of Iterator and it provides the methods to support bi-directional traversal of a list.