What is the result of the following?.
Map<String, String> map = new TreeMap<>(); map.put("tool", "HTML"); map.put("problem", "Web"); Property props = new Property(); // p1 map.forEach((k,v) -> props.put(k, v)); // p2 String t = props.getProperty("tool"); // p3 String n = props.getProperty("Web"); System.out.println(t + " " + n);
B.
The class on line p1 should be Properties rather than Property.
As written it is incorrect and does not compile, making Option B the answer.