Friday, 6 September 2013

Java hashmap implementation difference

Java hashmap implementation difference

Is there any difference in following implemenetations:
//version1
HashMap<String, Integer> test = new HashMap<String, Integer>();
//version2
HashMap<String, Integer> test = new HashMap<>();
Is it the same, oder am i missing something? Because both are working
exactly equal... in my eyes.

No comments:

Post a Comment