wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to Java

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Java was originally named:

a)

Coffee

b)

Oak

c)

New C++

d)

Duke

2.

From where did Java get its name?

a)

Coffee

b)

Book

c)

Initials of the developers of Java

d)

TV programme

3.

When was Java released?

a)

1975

b)

1985

c)

1995

d)

1990

4.

Who invented Java?

a)

Bill Gates

b)

Steve Jobs

c)

Sergey Brin

d)

James Gosling

5.

What is the slogan of Java?

4 lines
6.

Inheritance is used when the relationship between two classes is a(n) _______ relationship.

a)

"HAS-A"

b)

"PART-OF-A"

c)

"IS-A"

d)

inverse

7.

The following Syntax is used for?


class Subclass-name extends Superclass-name

{

//methods and fields

}

a)

Inheritance

b)

Polymorphism

c)

Encapsulation

d)

Abstraction

8.

A class that is inherited is called a ______ .

a)

subclass

b)

superclass

c)

subset class

d)

relative class

9.

What does polymorphism mean?

a)

changing shapes

b)

having many forms

c)

easy

d)

being unchangeable

10.

Above picture shows which basic concept of OOP.

4 lines