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

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

University

60 Qs

quiz-placeholder

Similar activities

ÔN TẬP Giữa Kỳ Môn Tin Học 8

ÔN TẬP Giữa Kỳ Môn Tin Học 8

7th Grade - University

62 Qs

TTL 1 22-23

TTL 1 22-23

University

55 Qs

APLIKASI KOMPUTER

APLIKASI KOMPUTER

University

63 Qs

GravenQUIZ

GravenQUIZ

KG - University

60 Qs

Doors

Doors

1st Grade - Professional Development

60 Qs

Keamanan Jaringan

Keamanan Jaringan

University

60 Qs

SECOND REVIEWER | EMPOWERMENT TECHNOLOGIES

SECOND REVIEWER | EMPOWERMENT TECHNOLOGIES

University

60 Qs

Online Safety

Online Safety

6th Grade - University

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