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


Please Help Members By Posting Answers For Below Questions

What is a java singleton?

472


What is repository pattern in java?

482


How do I install java on windows?

458


What is the point of lambda expressions?

474


What is orm in java?

504






What is maven in java?

458


Who created eclipse?

473


What is tuple2?

474


What is native api in java?

486


What is the use of flatmap?

514


differences between iterator and spliterator in java se 8?

550


Explain different way of using thread?

586


What is a stream in programming?

449


What can open a jar file?

459


What is cdi bean in java?

523