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
What are the major advantages of internal iteration over external iteration?
What is class forname used for?
What is the best definition for data?
What is the difference between equals() and == in java?
Give a practical example of singleton class usage?
What is token in java?
What is field name?
Is null == null in java?
Difference between overriding and overloading in java?
Why java doesn’t support multiple inheritances?
Define max and min heap, also the search time of heap.
What is the difference between break and continue statements?
What is ‘is-a ‘ relationship in java?
Is object a data type?
How to optimize the javac output?