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
How many threads does a core java have?
Difference between process and thread?
Does java have extension methods?
Name few java util classes introduced with java 8 ?
What does it mean that a class or member is final?
When should I use a singleton?
Is empty in java?
What does int argc char * argv [] mean?
What methods are used to get and set the text label displayed by a button object?
Explain method local inner classes ?
What is serialization in java?
What is the difference between equals() and?
What is main string [] args?
If you do not want your class to be inherited by any other class. What would you do?
Is object a data type in java?