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 are packages in java?
What is the synonym of framework?
What do you know about the garbage collector?
What is += mean in java?
Does java support Operator Overloading?
Can an interface be final?
What function extracts specified characters from a string?
How do you declare a variable?
Is binary a low level language?
What is an interface in java? Explain
What are the core java topics?
What are the different access modifiers available in java?
What is difference between path and classpath?
How do you add an arraylist to an array in java?
Which category the java thread do fall in?