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
Convert a BST into a DLL and DLL to BST in place.
In how many ways we can do synchronization in java?
Why is stringbuffer faster than string?
define polymorphism in java
Is treeset sorted in java?
what is meant wrapper classes?
What 4 doubled?
Why destructor is not used in java?
How do you implement polymorphism in our day to day life?
What is the difference between stringbuffer and stringbuilder?
Define a java class.
What are the states of thread in java?
What is the disadvantage of synchronization?
What is parameter example?
What are triggers in DB? Explain their types. How do they work?