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


Please Help Members By Posting Answers For Below Questions

What is difference overloading and overriding?

829


What is communist flag?

786


What is the different between get and post?

744


Can I uninstall java?

826


How will you initialize an Applet?

867


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

772


Is map sorted in java?

838


What is anagram number?

669


What is the use of 'super' keyword inside a constructor?

774


Can a top level class be private or protected?

807


What is a “stateless” protocol ?

779


Why for each loop is used?

779


What is method overloading in java ?

794


Explain about doubly linked list

842


Can we clone singleton object in java?

809