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 difference overloading and overriding?
What is communist flag?
What is the different between get and post?
Can I uninstall java?
How will you initialize an Applet?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
Is map sorted in java?
What is anagram number?
What is the use of 'super' keyword inside a constructor?
Can a top level class be private or protected?
What is a “stateless” protocol ?
Why for each loop is used?
What is method overloading in java ?
Explain about doubly linked list
Can we clone singleton object in java?