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 does localhost mean?
Explain method overloading?
What is linkedlist in java?
How are observer and observable used in java programming?
Explain implementation and how is it different from conversion?
Does .length start 0 java?
How many types of flags are there?
What if I write static public void instead of public static void in java?
What restrictions are placed on method overriding in java programming?
What is the purpose of the System class?
What is java literals?
What are the special characters?
What are the data types supported by java? What is autoboxing and unboxing?
Explain about fail safe iterators in java?
What is an anonymous class in java?