Solved

Consider the Following Code Snippet

Question 69

Multiple Choice

Consider the following code snippet:
Map<String, Integer> scores;
You expect to retrieve elements randomly by key, and want fastest retrieval times.Which of the following statements will create a structure to support this?


A) scores = new HashMap<>;
B) scores = new Map<>;
C) scores = new TreeMap<>;
D) scores = new TreeSet<>;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions