Question 1
Which of the following is NOT a part of the Java Collection Framework?
Map
Queue
Array
Set
Question 2
What is the key difference between Collection and Collections?
Collection is a class, while Collections is an interface
Collection is an interface, while Collections is a utility class
Both are interfaces
Both are utility classes
Question 3
What is the purpose of the Java Collections Framework?
To provide a set of classes for managing memory
To provide a unified architecture for managing data collections
To handle multithreading
To enhance the performance of the JVM
Question 4
Which interface is the root interface of the Java Collections Framework?
Set
Collection
Map
List
Question 5
Which of the following methods is provided by the Collections class in Java?
addAll()
sort()
shuffle()
all of the above
Question 6
Which of the following is true about the Collections class in Java?
It cannot be inherited
It is a subclass of AbstractList
It contains static methods for working with collections
It provides methods to manipulate a single collection
Question 7
Which of the following interfaces does NOT extend the Collection interface?
List
Set
Map
Queue
Question 8
What does the add() method in a Collection return?
A boolean value indicating success or failure
The added element
A reference to the collection itself
An index of the added element
Question 9
Which of the following is NOT a valid collection in the Java Collections Framework?
Stack
Vector
Map
Tree
Question 10
Which class provides a method to reverse the order of elements in a collection in Java?
ArrayList
Collections
Vector
HashSet
There are 10 questions to complete.