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 |
how do I create a runnable with inheritance? : Java thread
What are parent methods and how can you call them?
what is the use of clone() in real time scenario?
Define the term string pool?
What is procedure overloading?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What is a boolean used for?
Why does my function print none?
Why does abstract class have constructor?
If your team member writes code with lots of static variables and static methods, will it cause any side effects?
What happens when a thrown exception is not handled?
What is data type modifier?