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
Is jar an executable?
What is stateless class in java?
What is stateless in java?
What is a driver in java?
What is java net url?
What are microservices in java?
What is the difference between jar and executable jar?
What is the means of java?
What is java ioc?
What about javascript? : java security
If you’re overriding the method equals() of an object, which other method you might also consider?
i have client interview in TCS.client is CITI BANK.how to face it,what type of questions they will ask,please tell send me to kumar525job@gmail.com
What is repository pattern in java?
Is it better to learn java or python?
What is serializable in java?