Question 1
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 2
What is the purpose of the Collections class in Java?
It is used to store data
It provides utility methods for collection operations
It is a type of collection
It replaces ArrayList
Question 3
Which of the following is NOT part of the Java Collections Framework?
LinkedList
String
TreeSet
ArrayList
Question 4
Which of the following methods is provided by the Collections class in Java?
addAll()
sort()
shuffle()
all of the above
Question 5
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 6
Which of the following interfaces does NOT extend the Collection interface?
List
Set
Map
Queue
Question 7
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 8
Which of the following is NOT a valid collection in the Java Collections Framework?
Stack
Vector
Map
Tree
Question 9
Which class provides a method to reverse the order of elements in a collection in Java?
ArrayList
Collections
Vector
HashSet
There are 9 questions to complete.