Grokking Java Intermediate
0% completed
Quiz
Quiz
Question 1
Examine the following code snippet:
import java.util.HashMap;
public class Test {
public static void main(String[] args) {
HashMap<String, Integer> map = new HashMap<>();
map.put("Alice", 85);
map.put("Bob", 90);
map.put("Alice", 95);
System.out.println(map.get("Alice"));
}
}
What is the output?
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%