wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Android Fundamentals - Day 1: Java

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which one of these keywords are used to create a class in Java

a)

struct

b)

int

c)

class

d)

None of the above

2.

Which interface needs to be implemented in order to make an object serialized

a)

Clonnable

b)

Remote

c)

Serializable

d)

None of the above

3.

Which one of the following have elements in insertion order

a)

HashMap

b)

TreeMap

c)

SortedMap

d)

LinkedHashMap

4.

Which one of the following is true?

a)

Thread.run() method is used to move a thread from new state to the runnable state

b)

Thread.runnable() method is used to move a thread from new state to the runnable state

c)

Thread.start() method is used to move a thread from new state to the runnable state

d)

Runnable interface declares the start method

5.

Which one of these events will cause a thread to die?

a)

On calling the sleep() method.

b)

On calling the wait() method.

c)

When the execution of the start() method ends.

d)

When the execution of the run() method ends

6.

Which one of the following statement is not true about the Collection interface?

a)

Set interface extends Collection interface

b)

All methods defined in Set interface are also defined in Collection interface

c)

List interface extends Collection interface

d)

All methods defined in List interface are also defined in Collection interface

7.

Which of this class is used by Character streams for reading data from buffer

a)

FileReader

b)

BufferedReader

c)

FileInputStream

d)

InputStreamReader

8.

Superclass of all classes representing the output stream of characters is ________________

a)

InputStream

b)

Writer

c)

Reader

d)

OutputStream

9.

Which of the following is wrapper class in Java?

a)

Integer

b)

Float

c)

Double

d)

All of the above

10.

Which one of the following is a legal declaration of a two-dimensional array of integers

a)

int [5][5] a = new int[][];

b)

int a = new int[5,5];

c)

int[] a[] = new int[5][];

d)

int [][] a = new int[][5];