Search Header Logo

Java Quiz 1

Authored by Shobith B

Computers

University

10 Questions

Used 4+ times

Java Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is not an OOPS Principle?

a. Encapsulation

b. Polymorphism

c. Exception

d. Abstraction

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following OOP concept binds the code and data together and keeps them secure from the outside world?

a. Polymorphism

b. Inheritance

c. Abstraction

d. Encapsulation

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which component is used to compile, debug and execute java program?

JVM

JDK

JIT

JRE

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the return type of a method that does not return any value?

int

float

void

double

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which function is used to perform some action when the object is to be destroyed?

finalize()

delete()

main()

none of the mentioned

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the process of defining two or more methods within same class that have same name but different parameters declaration?

Method Overriding
Method Hiding
Method Overloading

none of the mentioned

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which method can be defined only once in a program?

main method

finalize method

static method

private method

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?