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

What does string mean in java?

803


What classes of exceptions may be thrown by a throw statement?

717


What are methods of a class?

717


Difference between arraylist and vector.

784


What is the static variable?

780






How do you implement tree mirroring in java?

786


What java is used for?

811


What is the purpose of a default constructor?

774


What interface is extended by awt event listeners?

791


Explain what are final variable in java?

766


What is anonymous inner class?

790


What is ctrl m character?

709


Explain the reason behind ending a program with a system.exit(0)?

769


What is javac_g?

745


What will happen to the exception object after exception handling?

772