What is the output of the following Java program?
import java.util.*;
public class Main {
public static void main(String[] args) {
TreeMap<String, Integer> m = new TreeMap<>();
m.put("c", 5);
m.put("a", 1);
m.put("b", 2);
m.put("a", 9);
System.out.println(m.firstKey() + m.lastEntry().getValue() + m.size());
}
}- Ac53
- Ba93
- Ca33
- Da53
Correct answer: D