Day 5 - Inheritance, super, final, abstraction, polymorphism

Day 5 - Inheritance, super, final, abstraction, polymorphism

University

60 Qs

quiz-placeholder

Similar activities

IC3_GS6_LV2

IC3_GS6_LV2

7th Grade - University

60 Qs

Java

Java

University

61 Qs

Desktop Publishing  Midterm  Exam

Desktop Publishing Midterm Exam

University

60 Qs

Unit 2: Cryptography

Unit 2: Cryptography

8th Grade - University

64 Qs

FDS_MIDTERM

FDS_MIDTERM

University

60 Qs

IoT_Midterm

IoT_Midterm

University

60 Qs

ระบบเครือข่าย2

ระบบเครือข่าย2

University

60 Qs

Conocimientos previos: Diseño y Desarrollo Web. HTML y CSS

Conocimientos previos: Diseño y Desarrollo Web. HTML y CSS

University

59 Qs

Day 5 - Inheritance, super, final, abstraction, polymorphism

Day 5 - Inheritance, super, final, abstraction, polymorphism

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Prof. Karale

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is true about inheritance in Java?

Java supports multiple inheritance using classes
Java supports multilevel inheritance
Java does not support inheritance
Inheritance reduces code reuse

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the base class of all Java classes?

Object
Class
Main
Parent

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to inherit a class in Java?

implements
extends
inherit
base

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is it called when a subclass has its own version of a method?

Method Overloading
Method Inheritance
Method Overriding
Method Hiding

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default access modifier for a class member?

public
private
protected
package-private

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In multilevel inheritance, a class can inherit from:

Only one class
Two classes
Three classes
Multiple interfaces

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these types of inheritance are supported in Java?

Single
Multiple
Hybrid
Multithreaded

Create a free account and access millions of resources

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?