Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java Quiz

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

Generally string is a sequence of characters, But in java, string is an _______.

a)

Object

b)

Class

c)

Package

d)

None of the above

2.

Which inheritance is not supported in java?

a)

Multiple

b)

Multilevel inheritance

c)

Hybrid

d)

Java supports all of the above

3.
Never put a semicolon before an open brace.
a)
True
b)
False
4.
if the int x = 128, output will be 127.
a)
true
b)
false
5.
who created Java?
a)
James gosling
b)
james avery
c)
james bond
d)
james franco
6.
When was Java developed?
a)
1983
b)
1991
c)
5000
d)
2000
7.
what is the name of java before it was renamed?
a)
Oak
b)
javas
c)
hava
d)
kava
8.
which of the following has the smallest size?
a)
byte
b)
long 
c)
short 
d)
ink
9.
what holds -128 to 127?
a)
bit
b)
byte
c)
mb
d)
gb
10.

Which of these is returned by “greater than”, “less than” and “equal to” operators ?

a)

a) Integers

b)

b) Floating – point numbers

c)

c) Boolean

d)

d) None of the mentioned