NEW
Font size
WorksheetsAndroid Fundamentals - Day 1: Java
Total questions: 10
Worksheet time: 5mins
Which one of these keywords are used to create a class in Java
struct
int
class
None of the above
Which interface needs to be implemented in order to make an object serialized
Clonnable
Remote
Serializable
None of the above
Which one of the following have elements in insertion order
HashMap
TreeMap
SortedMap
LinkedHashMap
Which one of the following is true?
Thread.run() method is used to move a thread from new state to the runnable state
Thread.runnable() method is used to move a thread from new state to the runnable state
Thread.start() method is used to move a thread from new state to the runnable state
Runnable interface declares the start method
Which one of these events will cause a thread to die?
On calling the sleep() method.
On calling the wait() method.
When the execution of the start() method ends.
When the execution of the run() method ends
Which one of the following statement is not true about the Collection interface?
Set interface extends Collection interface
All methods defined in Set interface are also defined in Collection interface
List interface extends Collection interface
All methods defined in List interface are also defined in Collection interface
Which of this class is used by Character streams for reading data from buffer
FileReader
BufferedReader
FileInputStream
InputStreamReader
Superclass of all classes representing the output stream of characters is ________________
InputStream
Writer
Reader
OutputStream
Which of the following is wrapper class in Java?
Integer
Float
Double
All of the above
Which one of the following is a legal declaration of a two-dimensional array of integers
int [5][5] a = new int[][];
int a = new int[5,5];
int[] a[] = new int[5][];
int [][] a = new int[][5];
