Same common question what is Map,Set,HashMap,List????
Answer Posted / punit pannu
collection API:- Collection is a interface which contains three sub-interfaces list set and queue sub-interfaces.
1.List sub-interface: it contains three concrete classes
Arraylist
Vector and
Linkedlist
2. Set sub-interface:- it contains two classes
HashSet
LinkedHashSet
and one interface- SortedSet which contains one concrete
class - TreeSet
3. Map interface: it contains three concrete classes
HashMap
HashTable
LinkedHashMap
and one sub-interface
SortedMap
which contains one concrete class
TreeMap.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What a static class can contains?
What is toarray method in java?
Why do people says “java is robust”?
What is loop in java?
Explain reverse a linked list recursive java solution?
Are functions objects in java?
Can we extend private class in java?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
Does .length start 0 java?
What is the primitive type short?
Can we override protected method in java?
What is nullpointerexception in java?
How many types of classes are there in java?
What is finalize() function in java?
How many types of parsers are there?