Difference between Map & Hashmap
Answers were Sorted based on User's Feedback
Answer / seema
Map is an interface and HashMap is the class that implements
that interface
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / rajesh
Map is the Interface and Hashmap is the class that
implements that.
Map is the static type of map, while HashMap is the dynamic
type of map. This means that the compiler will treat your
map object as being one of type Map, even though at
runtime, it may point to any subtype of it.
| Is This Answer Correct ? | 4 Yes | 3 No |
Can we execute a program without main() method?
What is the use of put method?
Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?
what ide u r using and wat version, how wil u build the project etc ?
Can we call thread start () twice?
Why is string builder not thread safe?
What is function overriding and overloading in java?
Why java is secure? Explain.
What is the use of collections in java? How it is implemented in real time applications?
What super () does in java?
How objects of a class are created if no constructor is defined in the class?
How to sort a vector elements that contains the user define class object? (Note: If Suppose consider, A Student class contain two data members. They are String studentName and int rollNo. I am creating Four objects for this class, each object contains students details like name and roll no. Now i am storing that objects in vector and if i retiving the elements from the vector means then it should be display in sorting order)
3 Answers ProdEx Technologies,