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 is collections framework?
Can you use abstract and final both with a method?
What is the use of arrays tostring () in java?
When is an object subject to garbage collection?
How does multithreading take place on a computer with a single cpu?
How to stop a thread in java? Explain about sleep () method in a thread?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Explain the importance of finally over return statement?
How infinite loop is declared?
What are bind parameters?
What is a singleton in genetics?
What is api in java?
What does main method?
Why do we need array in java?
What is overloading and overriding in java?