why abstract class will have a constructor?

Answer Posted / nitin panwar

Bcoz each subclass executes the superclass constructor
before executing own constructor,thats why abstract class
has a constructor .

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

616


What is data structure in java?

539


Why do you canvas?

613


Can we clone singleton object in java?

571


What are the properties of thread?

504






How to find the index of the largest number in an arraylist java?

522


What is entry set in java?

539


Does hashset allow duplicates in java?

582


What is boolean law?

520


What is the difference between static method and instance method in Java?

573


Can static methods be inherited?

537


What is difference between pointer and reference?

510


What is java instanceof operator?

565


Why do we need hashmap in java?

559


Can you make a constructor final?

582