Question 7
Consider the code given below.
import java.util.*;public class MapTest { public static void main(String[] args) { var bowler= new TreeMap<String,Integer>();
bowler.put("Umran", 5); bowler.put("Starc", 5);
bowler.put("Starc", 3); bowler.put("Umran", 3 + bowler.getOrDefault("Umran", 0));
for(Map.Entry<String, Integer> obj1:bowler.entrySet()) System.out.println(obj1.getKey()+":"+obj1.getValue()); }}What will the output be?