MCQs
Total Questions : 16
| Page 1 of 2 pages
Answer: Option B. -> java.util
java.util
Answer: Option A. -> clear()
clear() method removes all the elements from invoking collection.
Answer: Option D. -> Queue
Queue is not a part of collection framework.
Answer: Option A. -> A group of objects
A collection is a group of objects, it is similar to String Template Library (STL) of C++ programming language.
Answer: Option D. -> SortedList
SortedList is not a part of collection framework.
Answer: Option D. -> Collection
Collection interfaces defines core methods that all the collections like set, map, arrays etc will have.
Answer: Option B. -> List
List
Answer: Option D. -> SortedList
SortedList is not a part of collection framework.
Answer: Option A. -> Set
Set interface extends collection interface to handle sets, which must contain unique elements.
Answer: Option D. -> Collection
Collection interface is inherited by all other interfaces like Set, Array, Map etc. It defines core methods that all the collections like set, map, arrays etc will have