Can you have a constructor in abstract class?

Answer Posted / sumit

But you can create constructor in an abstract class.
and whenever you careate object of class implementing
abstarct class, constructor of te abstract class runs.

Is This Answer Correct ?    108 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where local and global variables are stored?

559


Can we have any code between try and finally blocks?

574


What is a package in java? List down various advantages of packages.

768


What is the java idl system?

589


What is Major and importance difference between for and foreach loop ?

590






If a variable is declared as private, where may the variable be accessed?

563


What is the purpose of a default constructor?

589


What exactly is methodology?

500


What is treeset in java?

559


What is the main use of java?

586


What do you understand by private, protected and public?

533


Can constructor return value?

522


What is the difference between assignment and initialization?

573


What are parameters in a method?

598


What is final access modifier in java?

608