Can you have a constructor in abstract class?

Answer Posted / vivek

Yes you can have only non parameterized constructor in
abstract class, Because for parameterized constructor we
will have to make instance of abstract class which is not
possible.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can substring create new object?

771


How to make object serializable in java?

744


What is thread life cycle?

712


What is internal iteration in java se 8?

848


Is empty list java?

704


How to add menushortcut to menu item?

738


What is an example of declaration?

748


What restrictions are placed on method overriding?

858


What is jpa specification?

725


What is the main use of generics in java?

710


What is difference between array and arraylist in java?

684


How do you do absolute value in java?

721


What do you mean by default constructor in java?

801


What is string subsequence method?

851


What are the object and class classes used for?

771