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 final?

580


Does java trim remove newline?

509


Is a method a procedure?

525


Write a java program for binary search?

577


What are the advantages of inner classes?

478






What is the difference between logical data independence and physical data independence?

506


Is a class subclass of itself?

570


What does \ mean in regex?

593


Why do we create threads in java?

537


How do you declare an empty string?

592


What are the restrictions imposed by a Security Manager on Applets?.

2035


When will you define a method as static?

527


What is the lifetime and scope of a variable?

488


How large is a boolean?

530


What is starvation?

650