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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -