Can a class extend abstract class or interface? why
Answer Posted / abhay bhatia
a class can extend an abstract class and can implement an
interface, why is because even though an abstract class
provide default implementation of its methods, we cannot
instantiate an object of the abstract class and therefore
need a class that extends it to use the instance methods of
this abstract class. An interface on the other hand cannot
even have default implementation, therefore it has to be
implemented to be used
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the ==?
is it possible to instantiate the math class?
what is collatration?
What is the difference between an array and an array list?
Explain the hierarchy of java exception classes?
Is a class an object?
how many types of Inheritance?
When object is created and destroyed?
What is oop principle in java?
What is mutable object and immutable object?
What is a jagged array in java?
What is return used for in java?
Is it possible to override private or static method in java?
Why put method is used?
Can we create a constructor in abstract class?