Map and HashMap in Java -


this question has answer here:

i new java , came across following usage hashmaps :

public static hashmap< string, integer > table1; .... table1 = new hashmap< string, integer > ();  ..... public map<string, integer> table2 = new hashmap<string, integer>(); 

my question above statement equivalent ? see map<string, integer> used table2. hashmap< string, integer > table1 , map<string, integer> table2 same programing construct ? can used interchangeably?

map interface, implemented in several implementations hashmap.

and

hashmap complete implementation class.

an useful answer here -difference between hashmap , map in java..?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -