why abstract class will have a constructor?

Answer Posted / hari krishna

All the classes including the abstract classes can have
constructors.Abstract class constructors will be called
when its concrete subclass will be instantiated.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the three dot emoji mean?

844


What is callablestatement? How you can call stored procedure to pass in parameter?

788


Where can I find jdk in my computer?

713


Can we clone singleton object in java?

811


What are triggers in DB? Explain their types. How do they work?

891


Difference between stack and queue?

829


What are the advantages of unicode?

804


What is the difference between a synchronized method and a synchronized block?

892


What is matcher in java?

756


What are the advantages of exception handling in java?

856


Can we overload run() method in java?

897


How do you take thread dump in java?

784


Can we override private method?

852


What about interrupt() method of thread class ?

865


Why main function is static?

938