Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core Java - Interview Questions and Answers for 'Importance of abstract class' - 1 question(s) found - Order By Newest|
|Ans. Abstract classes provide a mechanism of interfacing ( using abstract method ) as well as code reuse through inheritance ( extending abstract class )|
Comparing to concrete class they have an advantage of providing interface which a concrete class doesn't provide.
Comparing to interfaces they have an advantage of providing code reuse through inheritance which interfaces dont provide.
Sample Code for abstract class
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  abstract class  importance of abstract class Basic   frequent|
|Differences between abstract class and interface ?|
|Difference between Abstract and Concrete Class ?|
|If an Abstract class has only abstract methods, What's the difference between such a class and an interface ?|
|What are the design considerations while making a choice between using interface and abstract class ?|
|How is Abstraction implemented in Java ?|
|Difference between Base Class, Derived Class , Abstract Class and Concrete Class ?|
|What is an abstract class ?|
|Shall we use abstract classes or Interfaces in Policy / Strategy Design Pattern ?|
|Will this code Work ? If not , Why ?|
|Is java.util.Date an abstract Class ? Is java.util.Calendar an abstract Class ?|