Questions on Collections in java
- TreeMap class is used to implement which collection interface. Select the one correct answer.
- Set
- SortedSet
- List
- Tree
- SortedMap
- Name the Collection interface implemented by the Vector class.
- Name the Collection interface implemented by the Hashtable class.
- Name the Collection interface implemented by the HashSet class.
- Which of these are interfaces in the collection framework. Select the two correct answers.
- Set
- List
- Array
- Vector
- LinkedList
- Which of these are interfaces in the collection framework. Select the two correct answers.
- HashMap
- ArrayList
- Collection
- SortedMap
- TreeMap
- What is the name of collection interface used to maintain non-unique elements in order.
- What is the name of collection interface used to maintain unique elements.
- What is the name of collection interface used to maintain mappings of keys to values.
- Is this true or false. Map interface is derived from the Collection interface.
- True
- False
Answers to questions on Collections
- e
- List
- Map
- Set
- a,b
- c,d
- List
- Set
- Map
- b
No comments:
Post a Comment