Question 1
All the concrete classes in the Java Collections Framework implement ________.
◦ the Comparable interface
◦ the Comparator interface
◦ the Serializable interfaces
◦ the Cloneable interface
Question 2
Which of the following statements are true?
◦ The Collection interface provides the basic operations for adding and removing elements in a collection.
◦ The AbstractCollection class is a convenience class that provides partial implementation for the Collection interface.
◦ Some of the methods in the Collection interface cannot be implemented in the concrete subclass. In this case, the method would throw java.lang.UnsupportedOperationException, a subclass of RuntimeException.
◦ All interfaces and classes in the Collections framework are declared using generic type since JDK 1.5.
◦ The Collection interface is the root interface for manipulating a collection of objects.