Java Interfaces Quiz

Java Interfaces Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

DECI - Week 9 - round

DECI - Week 9 - round

Professional Development

12 Qs

PL-900 MÓDULO 01 pt-br

PL-900 MÓDULO 01 pt-br

Professional Development

10 Qs

Telco Practice Test 1

Telco Practice Test 1

Professional Development

15 Qs

KSK3024 1.1

KSK3024 1.1

Professional Development

10 Qs

PreTrainingClassesObjectsMethods

PreTrainingClassesObjectsMethods

Professional Development

10 Qs

Python_DS2

Python_DS2

Professional Development

10 Qs

DIAGNÓSTICO SISTEMAS DE INFORMACIÓN

DIAGNÓSTICO SISTEMAS DE INFORMACIÓN

Professional Development

10 Qs

introduction to visual programming

introduction to visual programming

Professional Development

8 Qs

Java Interfaces Quiz

Java Interfaces Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Ms STAFF

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about interfaces in Java?

Interfaces can have instance variables

Interfaces can have abstract methods

Interfaces can be instantiated

Interfaces cannot be implemented by classes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used by a class to implement an interface?

extends

implements

imports

package

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can an interface extend another interface in Java?

Yes, using extends keyword

Yes, using implements keyword

No, interfaces cannot extend

Only abstract classes can extend interfaces

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following members can an interface have?

Abstract methods

Static methods

Default methods

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default access modifier of methods in an interface?

private

public

protected

default (package-private)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can an interface contain constructors?

Yes

No

Only static constructors

Only protected constructors

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a class implements multiple interfaces, it is called:

Multilevel inheritance

Multiple inheritance

Hierarchical inheritance

Hybrid inheritance

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?