Search Header Logo

java Test5

Authored by Prof. Harish T. Gwalani

Computers

University

Used 2+ times

java Test5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

What is the base class of all Java classes?

Object
Class
Main
Parent

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to inherit a class in Java?

implements
extends
inherit
base

4.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

What is the default access modifier for a class member?

public
private
protected
package-private

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In multilevel inheritance, a class can inherit from:

Only one class
Two classes
Three classes
Multiple interfaces

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these types of inheritance are supported in Java?

Single
Multiple
Hybrid
Multithreaded

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?