wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Java_1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

WORA ???

a)

Write Once Run Anywhere

b)

Written One Ran Anything

c)

Write Once Run Anything

d)

Written once Run Anywhere

2.

_______________ is the defined as the template/blueprint

a)

Object

b)

Method

c)

Class

d)

Data

3.

_______ represents the data of the object.

a)

State

b)

data

c)

Identity

d)

behavior

4.

____________is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit.

a)

Abstraction

b)

Encapsulation

c)

Inheritance

d)

Polymorphism

5.

_______________ is a process of hiding the implementation details and showing only functionality to the user.

a)

Abstraction

b)

Encapsulation

c)

Polymorphism

d)

Inheritance

6.

________________ refers to the ability of an object / operation to behave differently in different situations.

a)

Polymorphism

b)

Encapsulation

c)

Abstraction

d)

Inheritance

7.

__________________ inheritance does not support in java Programming.

a)

Single

b)

Multiple

c)

Multi-level

d)

Hierarchical

8.

How to compile the java Program?

a)

javac Filename.java

b)

java Filename.java

c)

javac Filename

d)

JAva Filename

9.

How to run the java Program?

a)

javac Filename.java

b)

java Filename.java

c)

javac Filename

d)

Java Filename

10.

what is the extension of byte code in Java Programming?

a)

.java

b)

.class

c)

.cls

d)

.javac