| | | | MCQ Tutorial - JAVA->Collection | | | | 16.) What is Collection in Java? | | Options are: | | A.) A group of objects
| | B.) A group of interfaces
| | C.) A group of data types
| | D.) A group of classes
| | Correct Option: A | | | | | | | 17.) Which of these methods deletes all the elements from invoking collection? | | Options are: | | A.) delete()
| | B.) clear()
| | C.) refresh()
| | D.) reset()
| | Correct Option: B | | | | | | | 18.) Which of these interface is not a part of Java’s collection framework? | | Options are: | | A.) List
| | B.) SortedList
| | C.) Set
| | D.) SortedMap
| | Correct Option: B | | | | | | | 19.) Which of these classes is not part of Java’s collection framework? | | Options are: | | A.) Stack
| | B.) Map
| | C.) Array
| | D.) Queue
| | Correct Option: D | | | | | | | 20.) Which of these packages contain all the collection classes? | | Options are: | | A.) java.awt
| | B.) java.net
| | C.) java.util
| | D.) java.lang
| | Correct Option: C | | | | | | | | | | | |