Search Header Logo

JAVA

Authored by Sowmya D

Computers

University

Used 3+ times

JAVA
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statement is true about Interfaces?

An Interface can contain constructors.

An Interface can be instantiated.

An Interface can extend another Interface

An Interface is extended by a class.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

................. is the class from where a subclass inherits the features.


Class

Sub Class

Super Class

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Subclass is also called a ...........

Derived Class

Extended Class

Child Class

All the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

is an example of

Single Inheritance

Multiple Inheritance

Multilevel Inheritance

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this keyword must be used to inherit a class?

Super

this

extend

extent

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is correct way of inheriting class A by class B?

class B + class A {}

class B inherits class A {}

class B extends A {}

class B extends class A {}

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this program?

2 2

2 3

3 3

3 2

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?

Discover more resources for Computers