what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / rashmi kalra
1. Abstract classes may have concrete methods while
interfaces have no methods implemented.
2. Interfaces do not come in inheriting chain while
abstract class come in inheritance.
| Is This Answer Correct ? | 20 Yes | 6 No |
Post New Answer View All Answers
What does you mean in math?
Can we declare the static variables and methods in an abstract class?
What is assembly condition codes?
What is finalize()? Is finalize() similar to a destructor?
What is functional interface in java example?
What is a loop java?
What is an object's lock and which object's have locks in java programming?
What is the generic class?
What is the difference between inheritance and encapsulation?
Where is jre installed?
Can we define private and protected modifiers for the members in interfaces?
What are abstract classes and anonymous classes?
What is internal iteration in java se 8?
What is the use of a conditional inclusion statement in Java ?
How many bits is a word?