Question 1 of 25
Hints left: 3
Q1
Which of these is a Basic interface that all other interface inherits?
Q2
What is the remaining capacity of BlockingQueue whose intrinsic capacity is not defined?
Q3
Which of these class object has an architecture similar to that of array?
Q4
Which of these standard collection classes implements a dynamic array?
Q5
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); }
Q6
What happens if two threads simultaneously modify TreeSet?
Q7
Which of these package is used for all the text related modifications?
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
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()); } }
Q10
Which of these is a method of ListIterator used to obtain index of previous element?
Q11
Which of the below is not an implementation of List interface?
Q12
What is the correct method used to insert and delete items from the queue?
Q13
If large number of items are stored in hash bucket, what happens to the internal structure?
Q14
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); } } }
Q15
Which of these Exceptions is thrown by remote method?
Q16
Which of these is the interface of legacy?
Q17
Where does a new element be inserted in linked list implementation of a queue?
Q18
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
Q19
Which class provides thread safe implementation of List?
Q20
Which of these method is used to calculate number of bits required to hold the BitSet object?
Q21
When an array is passed to a method, will the content of the array undergo changes with the actions carried within the function?
Q22
Which of these standard collection classes implements all the standard functions on list data structure?
Q23
While finding the correct location for saving key value pair, how many times the key is hashed?
Q24
What is the worst case complexity of accessing an element in ArrayList?
Q25
What is the default clone of HashSet?