-
What is the output of this program?
import java.util.*;
public class hashtable
{
public static void main(String args[])
{
Hashtable object = new Hashtable();
object.put("D", new Integer(30));
object.put("E", new Integer(70));
object.put("F", new Integer(60));
object.remove(new String("E"));
System.out.print(object);
}
}
-
- {F=60, D=30, E=70}
- {D=30, E=70}
- {F=60, D=30}
- {D=30, E=70, F=60}
- None of these
Correct Option: C
{F=60, D=30}