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
Can we compare two strings in java?
How do you define a singleton class?
What is nested class?
What is the purpose of the runtime class in java programming?
What is string length in java?
What is the functionality of the stub?
Do you know how to reverse string in java?
Give a brief description of java socket programming?
What is prime number in java?
How do I enable java in safari?
What data type is a string?
Can we force garbage collector to run ?
Do you need to import math in java?
What is java reflection?
Does sprintf add a null terminator?