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 a static class can contains?

926


What is toarray method in java?

773


Why do people says “java is robust”?

772


What is loop in java?

762


Explain reverse a linked list recursive java solution?

752


Are functions objects in java?

806


Can we extend private class in java?

775


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

843


Does .length start 0 java?

760


What is the primitive type short?

798


Can we override protected method in java?

817


What is nullpointerexception in java?

747


How many types of classes are there in java?

800


What is finalize() function in java?

759


How many types of parsers are there?

788