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 dto in java?
What are the risks in java security? : java security
How can I swap two variables without using a third variable?
Is java a framework?
What is the point of lambda expressions?
What is @override annotation in java?
Why is javac not recognized?
What is rxjava2?
What is a jvm?
Is java installed on windows 10?
What is scrollable resultset in java?
Please can anybody explain what exactly "the project architecture" means???
Explain the encapsulation principle.
What is serializable in java?
What is data persistence in java?