Search Header Logo

Day 3 Wipro

Authored by Ms.Yatri Davda

Engineering

University

Used 1+ times

Day 3 Wipro
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for inheritance in Java?

this

super

extends

implements

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many classes can a Java class extend?

One

Two

Unlimited

Zero

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a subclass does not explicitly call super()?

Error occurs

JVM inserts it automatically

Parent constructor is never called

Program doesn’t compile

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class is at the top of the inheritance hierarchy in Java?

Object 

Superclass 

Main 

System

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which access modifier allows inheritance outside the package?

private 

public

protected

default

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if a class is marked final?

It can be inherited

It cannot be extended

Its methods can’t be called

It must have a constructor

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT required for method overriding?

Same name 

Same return type

Same parameters

private modifier

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?