Answer Posted / 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 |
Post New Answer View All Answers
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is primitive array?
What is :: operator in java?
How do you know if a value is nan?
Is string is a keyword in java?
What happens when main () method is declared as private?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
Why arraylist is used in java?
What is a lock or purpose of locks in java?
What is the difference between a loader and a compiler?
What are the methods of object class ?
Is Java a dying language?
Can we change the scope of the overridden method in the subclass?
Explain the importance of join() method in thread class?
What is immutable in java?