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

what is predefined function in java?

530


Explain methods specific to list interface?

539


What are different types of control structures?

475


What is the difference between overriding & overloading?

546


When should the method invokelater() be used?

568






What are advantages and disadvantages of OOPs?

611


what is meant wrapper classes?

591


What is the meaning of variable in research?

547


What is meant by anonymous class?

583


What is role of void keyword in declaring functions?

560


Can we clone singleton object in java?

549


Similarity and difference between static block and static method ?

526


Why is singleton class used?

507


What are the differences between checked exception and unchecked exception?

515


What is parsing a sentence?

534