NEW
Font size
WorksheetsPRE-TEST (COMPUTER 9)
Total questions: 10
Worksheet time: 5mins
Which of the following is wrapper class in java?
Float
Integer
Double
all of above
Which one of the following is true?
runnable interface declares the start method
Thread.start() method is used to move a thread from a new state to the runnable state
Thread.runnable() method is used to move a thread from new state to the runnable state
Thread.run() method is used to move a thread from new state to the runnable state
Which one of the following statement is not true about the collection interface?
all methods defined in set interface are also defined in collection interface
list interface extends collection interface
set interface extends collection interface
all methods defined in list interface are also defined in collection interface
Which one of the following is a legal decelration of a two- dimensional array of integers
int[] a[] = new int[5][];
int[5][5] a = new int[][];
int a = new int[5,5];
int[][] a = new int[][5];
Which interface needs to be implemented in order to make an object seralized
clonnable
remote
seralizable
none of the above
Superclass of all classes representing the output stream of characters is ____________.
OutputStream
Reader
InputStream
Writer
Which of this class is used by character streams for reading data from buffer?
BufferReader
InputStreamReader
FileReader
FileInputStream
Which one this keywords are used to create a class in java?
class
struct
int
none of the avove
Which one of these events will cause the thread to die?
on calling the sleep() method.
when the execution of the run() method ends
when the execution of the start() method ends
on calling the wait() method
Which one of the following have elements in insertion order?
sorted map
hashmap
linkedhashmap
treemap
