Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

which one this keywords are used to create a class in java

a)

class

b)

struct

c)

int

d)

none of the avove

2.

which one of the following have elements in insertion order

a)

sorted map

b)

hashmap

c)

linkedhashmap

d)

treemap

3.

which of the following is wrapper class in java

a)

Float

b)

Integer

c)

Double

d)

all of above

4.

Java was originally named:

a)

Coffee

b)

Oak

c)

New C++

d)

Duke

5.

When was Java released?

a)

1975

b)

1985

c)

1995

d)

2005

e)

2015

6.

Who invented Java?

a)

James Gosling

b)

Sergey Brin

c)

Steve Jobs

d)

Bill Gates

e)

Tim Berners-Lee

7.

What was Java originally designed for?

a)

Interactive TV

b)

Internet

c)

Gaming

d)

Cars

8.

Which company owns Java?

a)

Oracle

b)

Microsoft

c)

Google

d)

Apple

e)

Intel

9.

int [] nums = {2, 3, 5, 8, 9, 11};

How would you access the fourth element in nums?

a)

nums[4]

b)

nums[3]

c)

nums(4)

d)

nums(3)

10.

which one of the following is true?

a)

runnable interface declares the start method

b)

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

c)

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

d)

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