why abstract class will have a constructor?

Answer Posted / hari krishna

All the classes including the abstract classes can have
constructors.Abstract class constructors will be called
when its concrete subclass will be instantiated.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is object oriented?

584


What are the features in java?

574


What do you mean by thread safe?

536


How many types of the indexof method are there for strings?

487


Can we write class inside a class in java?

548






Which is dependent variable?

492


What is method and methodology?

608


Can a static class have a constructor?

515


Write a program to print fibonacci series

609


How to check if a list is sorted in java?

586


What is bubble sort in java?

612


How many arguments can a method have java?

540


What is difference between add() and addelement() in vector?

1059


What is difference between path and classpath variables?

563


What are singleton services?

489