top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is internal processing of HashMap in Java ?

+2 votes
593 views
What is internal processing of HashMap in Java ?
posted Jun 18, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

HashMap is fast and so on along with basics like its stores key and value pairs etc. This shows that person has used HashMap and quite familiar with the functionality it offers, but interview takes a sharp turn from here and next set of follow-up questions gets more detailed about fundamentals involved with HashMap in Java .

Please Refer this Link for more Info:

http://javarevisited.blogspot.in/2011/02/how-hashmap-works-in-java.html

answer Jun 18, 2015 by Karthick.c
Similar Questions
+1 vote

Example
Map data = new HashMap();
data.put("a","America");
data.put("a","Africa");
data.put("b","Bangladesh");

Need to have both "America" and "Africa" as value against key "a". Is there any mechanism to achieve this scenario.

...