Can an interface extands a class?
Answers were Sorted based on User's Feedback
Answer / pramod p deore
No, an interface can extends only other interface.
Interface can not extends a class or abstract class.
1) a class can implements an interface but does not extends
interface.
2) interface can extends other interface but does not
implemets other interface.
3) a class can extends other class but does not implements
other class.
| Is This Answer Correct ? | 60 Yes | 0 No |
No,Interface can't extends class.It ll throw compile time
exception.
can
class extends class
class implements interface,interface,...
interface extends interface
can't
class extends class,class
interface implements class
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / sunil kale
no interface can't extends class, it only extends another
interface.
Class implpements interface.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sujoy saha
yes.......but a class can't extends interface
| Is This Answer Correct ? | 6 Yes | 45 No |
What is jee6?
What is boolean law?
which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None
Is sizeof a preprocessor?
What is serial version uid and its importance in java?
What is jpa specification?
what r advatages of websphere? & how to deploy?
take any 4 input numbers. like 2345.. wanted out put is All 16 combinations of the number 2345.. for example- taking input as 4565 output- 5654 4556 4655..
Can a main method be declared final?
When we r go to abstract class and when we go to Interface? i have confusion this question while in interview plz clarify
Explain the scope of a variable.
What is the difference between jvm and jre? What is an interface?