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 collections framework?

566


Can you use abstract and final both with a method?

566


What is the use of arrays tostring () in java?

510


When is an object subject to garbage collection?

566


How does multithreading take place on a computer with a single cpu?

530






How to stop a thread in java? Explain about sleep () method in a thread?

574


Which container method is used to cause a container to be laid out and redisplayed in java programming?

588


Explain the importance of finally over return statement?

598


How infinite loop is declared?

523


What are bind parameters?

538


What is a singleton in genetics?

552


What is api in java?

523


What does main method?

548


Why do we need array in java?

524


What is overloading and overriding in java?

651