interface and abstract class

interface and abstract class

Professional Development

11 Qs

quiz-placeholder

Similar activities

Pre Test Design Thinking

Pre Test Design Thinking

University - Professional Development

14 Qs

cakes

cakes

Professional Development

10 Qs

DigiLit Eval

DigiLit Eval

Professional Development

14 Qs

Cycle 4: Session 8 Review.

Cycle 4: Session 8 Review.

Professional Development

12 Qs

EXPLORADORES MOTOROLA - BOGOTÁ

EXPLORADORES MOTOROLA - BOGOTÁ

Professional Development

13 Qs

Types of AfL Assessment Challenge/Review

Types of AfL Assessment Challenge/Review

Professional Development

13 Qs

Examen de Admisión a HPD FASE 1 serie A

Examen de Admisión a HPD FASE 1 serie A

6th Grade - Professional Development

13 Qs

Maintenance Planning & Application

Maintenance Planning & Application

Professional Development

15 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?