Same common question what is Map,Set,HashMap,List????
Answers were Sorted based on User's Feedback
Answer / dsr
Map,set ,List are collection interfaces.
HashMap is a collection class.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / 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 |
How can we pass argument to a function by reference instead of pass by value?
Explain abstract class in java?
How to create a fecelet view?
What is better - 'bit-shift a value' or 'multiply by 2'?
What is variable length arguments in java?
Is java a security risk?
What does int [] mean in java?
What is array initialization in java?
What is charat ()?
What is garbage collection in Java, and how can it be used ?
32 Answers Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,
Can we overload the methods by making them static?
What is a static method in java?