Difference between abstract class and Interfaces?
Answer Posted / ranganathkini
An Interfaces defines a public contract of methods for the
classes that implement it. An implementing class must
implement all the method defined by the interface.
An abstract class on the other hand not only defines a
public contract of methods but may also provide partial
implementation of some or all of the class methods. A
subclass of an abstract class inherits the partial
implementation (if any) or must provide a concrete
implementation of the abstract methods.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain importance of finally block in java?
Why java is a platform independent? Explain
What is a copy constructor in java?
What is overriding in java?
What are advantages of using Java?s layout managers than windowing systems?
Can you explain the final method modifier?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is type parameter in java?
What is r * in math?
How to create a custom exception?
how many types of Inheritance?
Is static a singleton?
How can we access some class in another class in java?
How many types of threads are there in java?
What do you mean by local variable and instance variable?