oops

oops

University

16 Qs

quiz-placeholder

Similar activities

Sals of Goods Act 1930

Sals of Goods Act 1930

University

20 Qs

Understanding the Self Midterm Quiz 1          First Semester 2021-2022

Understanding the Self Midterm Quiz 1 First Semester 2021-2022

University

20 Qs

Marketing environment - Micro

Marketing environment - Micro

University

18 Qs

Develop Quiz3: Ag Dev.

Develop Quiz3: Ag Dev.

University

16 Qs

A QUICK REFRESH

A QUICK REFRESH

University

15 Qs

Pemrograman Visual

Pemrograman Visual

University

15 Qs

FAMOUS

FAMOUS

University - Professional Development

13 Qs

Three Truths and a Lie

Three Truths and a Lie

University

11 Qs

oops

oops

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Niveditha N

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...

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which can have both abstract and non-abstract methods?

Interface

Abstract Class

Enum

None of the above

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What keyword is used to implement an interface?

extend

derive

implement

implements

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which one supports multiple inheritance in Java?

Class

Abstract class

Interface

Constructor

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can abstract class have private or protected members?

Yes

No

Only public

Only static

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is true?

Abstract class can implement an interface

Interface can extend a class

Abstract class must be final

Interface can have constructors

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements about constructors is TRUE?

Constructors can be inherited

Constructors can be overridden

Constructors cannot be final

Constructors can return a value

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will happen if a subclass overrides a method and gives it more restrictive access?

Code compiles fine

Runtime error

Compile-time error

JVM will ignore it

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?