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

Explain parallel processing in java8?

633


What is the difference in between cpp and java? Can u explain in detail?

603


What is int short for?

512


What is the meaning of I ++ in java?

605


What is definition and declaration?

522






When super keyword is used?

591


Write a method that will remove given character from the string?

569


Is singleton class immutable?

538


List two java ide’s?

608


What is public/private protected in java?

541


How do you create a method in java?

542


What is the difference between normal report & matrix report?

564


Why we use protected in java?

530


What is api in java?

530


What is stringbuffer in java?

541