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 final?
Does java trim remove newline?
Is a method a procedure?
Write a java program for binary search?
What are the advantages of inner classes?
What is the difference between logical data independence and physical data independence?
Is a class subclass of itself?
What does \ mean in regex?
Why do we create threads in java?
How do you declare an empty string?
What are the restrictions imposed by a Security Manager on Applets?.
When will you define a method as static?
What is the lifetime and scope of a variable?
How large is a boolean?
What is starvation?