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
Can we create constructor in abstract class ?
How does predicate work in java?
What variables are stored in stack?
Is a class an object?
How many bits is a string in java?
Why do we use string?
What is the use of math abs in java?
What is floating data type?
What is java’s garbage collected heap?
How many bytes is a char in java?
What is += mean in java?
What are the advantages of passing this into a method instead of the current class object itself?
What is variable length arguments in java?
Can you change array size in java?
What is the type of lambda expression?