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 |
What are the two categories of data types in the java programming language?
What is classname class in java?
How to store image in arraylist in java?
How do you check if a character in a string is a digit or letter?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
Which Java operator is right associative?
What about interthread communication and how it takes place in java?
How to check if a list is sorted in java?
What is garbage collection? Can it be forced to run?
Why chararray() is preferred over string to store the password?
How to Sort list of Strings in ascending order without using java api.
Why java applets are more useful for intranets as compared to internet?