51.
What will be the output of the following Java program?
import java.util.*;
class Maps 
{
    public static void main(String args[]) 
    {
        HashMap obj = new HashMap();
        obj.put("A", new Integer(1));
        obj.put("B", new Integer(2));
        obj.put("C", new Integer(3));
        System.out.println(obj.keySet());
    }
}

52.
What will be the output of the following Java code?
import java.util.*;
class date
{
    public static void main(String args[])
    {
        Date obj = new Date();
        System.out.print(obj);
    }
}

54.
What is the length of the application box made in the following Java program?
import java.awt.*;
import java.applet.*;
public class myapplet extends Applet 
{
    Graphic g;
    g.drawString("A Simple Applet",20,20);    
}

55.
If large number of items are stored in hash bucket, what happens to the internal structure?

60.
What happens if two threads simultaneously modify TreeSet?

Read More Section(Collections Framework in java)

Each Section contains maximum 100 MCQs question on Collections Framework in java. To get more questions visit other sections.