Question 1 of 25
Hints left: 3
Q1
Which of these standard collection classes implements all the standard functions on list data structure?
Q2
If large number of items are stored in hash bucket, what happens to the internal structure?
Q3
Which of these method is used to calculate number of bits required to hold the BitSet object?
Q4
What will be the output of the following Java code snippet? public class Test { public static void main(String[] args) { Set s = new HashSet(); s.add(new Long(10)); s.add(new Integer(10)); for(Object object : s) { System.out.println("test - "+object); } } }
Q5
Which of the below is not an implementation of List interface?
Q6
What is the default clone of HashSet?
Q7
While finding the correct location for saving key value pair, how many times the key is hashed?
Q8
What will be the output of the following Java code? import java.util.*; class hashtable { public static void main(String args[]) { Hashtable obj = new Hashtable(); obj.put("A", new Integer(3)); obj.put("B", new Integer(2)); obj.put("C", new Integer(8)); System.out.print(obj.contains(new Integer(5))); } }
Q9
Which of these Exceptions is thrown by remote method?
Q10
Which of these is a Basic interface that all other interface inherits?
Q11
Which of these standard collection classes implements a dynamic array?
Q12
What is the correct method used to insert and delete items from the queue?
Q13
What happens if two threads simultaneously modify TreeSet?
Q14
What is the remaining capacity of BlockingQueue whose intrinsic capacity is not defined?
Q15
Which of these class object has an architecture similar to that of array?
Q16
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); }
Q17
Which of these is a method of ListIterator used to obtain index of previous element?
Q18
What will be the output of the following Java program? import java.util.*; class Maps { public static void main(String args[]) { TreeMap obj = new TreeMap(); obj.put("A", new Integer(1)); obj.put("B", new Integer(2)); obj.put("C", new Integer(3)); System.out.println(obj.entrySet()); } }
Q19
Which of these package is used for all the text related modifications?
Q20
Which class provides thread safe implementation of List?
Q21
What will be the output of the following Java program? import java.util.*; class Arraylist { public static void main(String args[]) { ArrayList obj = new ArrayList(); obj.add("A"); obj.add("B"); obj.add("C"); obj.add(1, "D"); System.out.println(obj); } }
-
A
-
B
-
C
-
D
Q22
When an array is passed to a method, will the content of the array undergo changes with the actions carried within the function?
Q23
Where does a new element be inserted in linked list implementation of a queue?
Q24
Which of these is the interface of legacy?
Q25
What is the worst case complexity of accessing an element in ArrayList?