interface and abstract class

interface and abstract class

Professional Development

11 Qs

quiz-placeholder

Similar activities

MSDM.net Quiz 094

MSDM.net Quiz 094

Professional Development

10 Qs

Post Test Training Product Knownlegde Enesis

Post Test Training Product Knownlegde Enesis

Professional Development

15 Qs

Suggestopedia Method

Suggestopedia Method

Professional Development

10 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

HSC_Competency 5 Response to Service Challenges

HSC_Competency 5 Response to Service Challenges

Professional Development

12 Qs

Food Additives Quiz 1

Food Additives Quiz 1

University - Professional Development

16 Qs

AXIE 101

AXIE 101

KG - Professional Development

10 Qs

Data Structure

Data Structure

Professional Development

13 Qs

interface and abstract class

interface and abstract class

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

Assistant Chennai

Used 147+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Abstract class can have

Abstract methods

Methods with code implementation

Used to create objects

Used to create subclasses

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an abstract method?

An abstract method is any method in an abstract class.

An abstract method is a method which cannot be inherited.

An abstract method is one without a body that is declared with the reserved word abstract.

n abstract method is a method in the child class that overrids a parent method.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can an abstract class define both abstract methods and non-abstract methods?

No—it must have all one or the other.

No—it must have all abstract methods.

Yes—but the child classes do not inherit the abstract methods.

Yes—the child classes inherit both.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

"HAS-A"
"PART-OF-A"
"IS-A"
inverse

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class is super class of every class in Java?

String class

Object class

ArrayList class

Abstract class

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these keywords can be used to prevent inheritance of a class?

super

constant

extends

final

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class relies upon its subclasses for complete implementation of its methods?

Object class

abstract class

ArrayList class

None of the mentioned

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?