Escolar Documentos
Profissional Documentos
Cultura Documentos
In java, collection interview questions are mostly asked by the interviewers. Here is the list
of mostly asked collections interview questions with answers.
ArrayList
Vector
1)
Vector is synchronized.
2)
3)
ArrayList
LinkedList
LinkedList is efficien
required.
manipulation.
LinkedList is better
data.
No.
1
Iterator
Iterator traverses the elements in forward
ListIterator
direction only.
directions both.
Iterator
Enumeration
1)
2)
Iterator is fail-fast.
3)
HashMap
Hashtable
Hashtable is synchronized.
HashMap can contain one null key and multiple null values.
)
2
)
Comparable
Comparable provides only one sort of sequence.
)
2
Comparator
modified.
)
3
)