Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why abstract class will have a constructor?

Answer Posted / ram

Abstract class have the constructor in it just to instantiate its instance variables. Where as Interfaces are not containing any instance variables. That is why, they dont have constructor concept.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I override protected method in java?

1133


Explain java thread life cycle.

1088


What is a superclass?

1408


What is use of super keyword?

1018


Can abstract class have private constructor?

989


What are byte codes?

1299


What is the final class modifier?

1091


What is the different between get and post?

1018


Why packages are used?

1687


What is serialversionuid?

1157


Can you pass functions in java?

1080


Explain the pointers in Java?

1109


What is parsing a sentence?

1171


Which data type is class in java?

1060


Is nullpointerexception checked or unchecked?

1074