Same common question what is Map,Set,HashMap,List????
Answers were Sorted based on User's Feedback
Answer / dsr
Map,set ,List are collection interfaces.
HashMap is a collection class.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / 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 |
Can you make an instance of an abstract class?
What is HashTable?
Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.
Can list be null in java?
Write a program to solve producer consumer problem in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Is java pure object oriented or not? if yes, give the valid reason.
13 Answers Emphasis, NIIT, Syntel, Wipro,
which swing component is similar to rich text box in .net/vb
what is ststic with example
What is the size of string?
how to create multithreaded program? : Java thread
How big is a 32 bit integer?