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
Is arraylist an object in java?
What is singleton class example?
What is locale?
How do you test a method for an exception using junit?
What super () does in java?
What is the file extension for java?
What is the main method java?
Where is java located?
What is the difference between a local variable and an instance variable?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
Can we overload the main() method?
What are the common uses of "this" keyword in java ?
What are the uses of java?
What is mvc in java?
What does ide stand for?