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 the point of lambda expressions?
What is java api?
What is @override annotation in java?
How do I run a java program from the command line?
I run a web server. Am I at risk? : java security
How does jpa repository work?
Which version of my browser should I use? : java security
How many types of jdk are there?
Is lambda cheaper than ec2?
What is optional in java 8? What is the use of optional?advantages of java 8 optional?
Which version of jdk is required for netbeans 8.0 2?
What does jpa mean?
How do I export a java project?
What is cdi bean in java?
What is java lang noclassdeffounderror?