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 do you mean by garbage collection used in java?

662


How do singleton patterns work?

610


What is the scope or life time of instance variables?

761


What is variable in java?

607


Explain the difference between abstraction and encapsulation.

626






What is a class object?

587


what is a thread pool in java and why is it used?

617


Explain the importance of join() method in thread class?

733


What are parsers? Dom vs sax parser.

650


Where are global variables stored?

590


Why does java not allow multiple public classes in a java file ?

3648


What purpose do the keywords final, finally, and finalize fulfill?

729


Does .length start 0 java?

668


How do you pass by reference?

628


How do you sort an array in java?

631