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 are the drawbacks for singleton class?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
Is JRE required to compile Java files ?
What are Brief Access Specifiers and Types of Access Specifiers?
What happens if an exception is throws from an object's destructor?
what is the difference b/w PUT and POST method to send data to the server
Is Java is 100% pure OOPS? Explain?
Which is fastest collection in java?
What does || || mean in math?
Can we override data members in java?
What does snprintf return?
Explain listiterator and methods in listiterator?