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
How do I start netbeans?
What is the difference between deep copy and shallow copy in java
Who is at risk in java? : java security
I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance
What are the benefits of a jar file?
What is meant by pass by reference and pass by value in java?
Is lambda functional programming?
What is persistence xml in java?
What is gpt and gpc? : java security
What are java’s rules regarding tabs, spaces and newline characters?
What is lazy loading in jpa?
Can the main method be declared final?
What is the locale class?
Why do we need framework in java?
What is stateless object in java?