ABSTRACT AND INTERFACES Flashcards

1
Q

Interface

A

all methods in interface are abstract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or false

Classes CANNOT implement more than one interface

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the access level of fields in interface

A

public, static and final

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

interfaces do not have constructors ( abstract classes do as these constructors are usually used in subclasses)

A

Abstract classes can have constructors, but they cannot be instantiated directly. The constructors are used when a concrete subclass is created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Interface with single abstract method is called

A

Functional interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly