What is the syntax of creating a Hashmap in Java?
HashMap<k, v> map = new HashMap<>();
map<k, v> = new HashMap<>();
HashMap<k, v> map = new HashMap();
None of these
This question is part of this quiz :