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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -