Java Interfaces Quiz

Java Interfaces Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

OOPS

OOPS

Professional Development

12 Qs

Inheritance & Abstraction

Inheritance & Abstraction

Professional Development

10 Qs

SENZ AIOT SAVANTS - JV & JS

SENZ AIOT SAVANTS - JV & JS

Professional Development

10 Qs

Java SE: Programming I

Java SE: Programming I

Professional Development

10 Qs

Desenvolvedor Web: Design 02

Desenvolvedor Web: Design 02

Professional Development

14 Qs

FCP NSE4: Infrastructure - Capitulo 1 - Routing

FCP NSE4: Infrastructure - Capitulo 1 - Routing

Professional Development

12 Qs

CCNA - SRWE&ENSA - Cap9-12

CCNA - SRWE&ENSA - Cap9-12

Professional Development

15 Qs

Java Week 2 - Day 3 & 4

Java Week 2 - Day 3 & 4

Professional Development

10 Qs

Java Interfaces Quiz

Java Interfaces Quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Ms STAFF

Used 1+ times

FREE Resource

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