Collections Framework – Multiple Choice Questions (MCQs)
-
-
2. What is the root interface of the Java Collections Framework?
-
3. Which interface represents an ordered collection (sequence)?
-
4. Which interface represents a collection that contains no duplicate elements?
-
5. Which interface represents a collection that stores key-value pairs?
-
6. Which interface represents a collection designed for holding elements prior to processing?
-
7. Which of the following classes implements the `List` interface?
-
8. Which of the following classes implements the `Set` interface?
-
9. Which of the following classes implements the `Map` interface?
-
10. Which of the following classes implements the `Queue` interface?
-
11. What is the difference between `HashSet` and `TreeSet`?
-
12. What is the difference between `HashMap` and `TreeMap`?