oops

oops

University

16 Qs

quiz-placeholder

Similar activities

Test de evaluación para prácticas del Summer Camp

Test de evaluación para prácticas del Summer Camp

University

20 Qs

ENCFAP2L Final Quiz 2

ENCFAP2L Final Quiz 2

University

20 Qs

HTBB 3013 - Quiz 3

HTBB 3013 - Quiz 3

2nd Grade - University

15 Qs

CODEATHON'22

CODEATHON'22

University

20 Qs

Business Law

Business Law

University

15 Qs

Revisão de Programação Java

Revisão de Programação Java

9th Grade - University

15 Qs

Cuestionario Arboles Binarios

Cuestionario Arboles Binarios

University

12 Qs

Test Your Fish Knowledge

Test Your Fish Knowledge

5th Grade - Professional Development

14 Qs

oops

oops

Assessment

Quiz

Other

University

Hard

Created by

Niveditha N

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?