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
How to display names of all components in a Container?
How many types of java are there?
What do you mean by exception handling in Java?
a thread is runnable, how does that work? : Java thread
What is string length in java?
When should I use singleton pattern?
What is the difference between an interface and an abstract class?
Tell me the latest versions in java related areas?
What is the difference between Grid and Gridbaglayout?
What are the advantages of java inner classes?
How many types of flags are there?
Can a lock be acquired on a class in java programming?
What is the difference in between cpp and java? Can u explain in detail?
What is the difference between arraylist and hashset in java?
What are different data types?