Million Dollar Question Flashcards

(20 cards)

1
Q

Can a interface implement class?

A

False

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

Can a abstract class have a abstract method?

A

True

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

Can a interface have a abstract method?

A

True

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

What kind of field can a abstract class have?

A

Any kind, as long as it is a class (static, instance, finanl, non-final)

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

What kind of field can a interface class have?

A

only constant which is public, static and final

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

Can a abstract class have a constructor?

A

True

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

Can interface class have a constructor?

A

False

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

Can a abstract class have a instance block?

A

yes, you can have anything

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

Can abstract classes have a concrete method?

A

True

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

Can interface have a method that has a body?

A

default and static method must have body

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

Can a abstract class implement multiple interface?

A

True

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

Can a abstract class extend multiple another class?

A

False

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

Can a interface implement a class?

A

False

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

Can a interface extend another interface?

A

True

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

Can a class implement other class?

A

False

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

Can interface extend multiple another interface

17
Q

Can a interface can have any other access modifier ?

A

only public, if it is protected it will not compile

18
Q

Member of interface can be static?

A

False, it cannot.

19
Q

Does Interface contains Data Member?

20
Q

Does abstract contains Data Member?