Interfaces Flashcards

1
Q

Interface methods are by default

A

Abstract and public

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

Interface attributes are by default

A

Public, static and final

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

An interface cannot contain

A

A constructor (as it cannot be used to create objects)

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

Like abstract classes, interfaces cannot be used to

A

Create objects

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

Interface methods do not have a

A

Body

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