Difference between Abstract Class & Interface?
Answer Posted / rakesh.fanu
Abstract Class :-
Abstract class should be declare with abstract.
Abstract Class must be extended by its sub class.
Abstract Class has abstract method and also method with
body also.
Abstract Class has not instance variables , it contain only
Constant.
An abstract class cannot be instantiated
Interface :-
Interface must be Implemented by another class.
Interface has only abstract method.
Interface has not instance variables , it contain only Constant.
An Interface cannot be instantiated
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is a java singleton?
What is repository pattern in java?
How do I install java on windows?
What is the point of lambda expressions?
What is orm in java?
What is maven in java?
Who created eclipse?
What is tuple2?
What is native api in java?
What is the use of flatmap?
differences between iterator and spliterator in java se 8?
Explain different way of using thread?
What is a stream in programming?
What can open a jar file?
What is cdi bean in java?