Java-Collections

1-Which of these is not a interface in the Collections Framework?
A-Collection
B-Group
C-Set
D-List
2-Which interface restricts duplicate elements?
A-Set
B-List
C-Map
D-(All of these)
3-Which of these collection class has the ability to grow dynamically?
A-Array
B-Arrays
C-ArrayList
D-(None of these)
4-What implementation of Iterator can traverse a collection in both directions?
A-Iterator
B-ListIterator
C-SetIterator
D-MapIterator
5-Which of these is synchronized?
A-ArrayList
B-LinkedList
C-Vector
D-(None of these)
6-Which does not allow to store a null value?
A-TreeSet
B-LinkedHashSet
C-HashSet
D-None
7-Which is best suited to a multi-threaded environment?
A-WeakHashMap
B-Hashtable
C-HashMap
D-ConcurrentHashMap
8-The default capacity of a ArrayList is:
A-12
B-16
C-1
D-10
9-Which provides better performance for the insertion and removal from the middle of the list?
A-Vector
B-ArrayList
C-LinkedList
D-(All of these)
10-Which of these allows the storage of many null values?
A-Set
B-List
C-(None of these)
D-(All of these)
0
{"name":"Java-Collections", "url":"https://www.quiz-maker.com/QB645VL","txt":"1-Which of these is not a interface in the Collections Framework?, 2-Which interface restricts duplicate elements?, 3-Which of these collection class has the ability to grow dynamically?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker