1.

What is the output of this program?
import java.util.*;
public class Map_Exmple
{
public static void main(String args[])
{
TreeMap object = new TreeMap();
object.put("I", new Integer(9));
object.put("L", new Integer(12));
object.put("U", new Integer(21));
System.out.println(object.entrySet());
}
}

A. 9, 12, 21
B. I, L, U
C. [9, 12, 21]
D. [I=9, L=12, U=21]
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs