Collections and Generics
© examsiri.com
Question : 1 of 53
Marks:
+1,
-0
Given:
What, inserted at line 6, will sort the keys in the props HashMap?
1. HashMap props = new HashMap();
2. props.put("key45", "some value");
3. props.put("key12", "some other value");
4. props.put("key39", "yet another value");
5. Set s = props.keySet();
6. /* insert code here*/What, inserted at line 6, will sort the keys in the props HashMap?
Go to Question: