ExamVeda
Login
Home
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());
    }
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
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);
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
53
What is the worst case complexity of accessing an element in ArrayList?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
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);    
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
55
If large number of items are stored in hash bucket, what happens to the internal structure?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
56
Which of these standard collection classes implements a dynamic array?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
57
What is the default clone of HashSet?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
58
What is the correct method used to insert and delete items from the queue?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
59
Which of these standard collection classes implements all the standard functions on list data structure?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
60
What happens if two threads simultaneously modify TreeSet?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board