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

can rmi and corba based applications interact ?

754


What are the different types of inheritance in java?

631


How does hashset works in java?

634


Why are generics used?

615


Which sorting algorithm is in place?

625






How do you write a conditional statement?

605


How do you create a sop?

624


Can an integer be a string?

608


What are internal variables?

666


Is java a pure object oriented language?

621


how come we know the object is no more used in the class?

5754


What is thread safe singleton?

615


Explain about interrupt() method of thread class ?

763


Who developed java?

648


What is a two-pass assembler?

694