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

What is a package in java? List down various advantages of packages.

1337


What is regex in java?

989


Why parsing is done?

1026


Are global variables initialized to zero?

997


How does regex work?

1012


How do you create a sop?

1041


How do you achieve singleton?

1024


In a container there are 5 components. I want to display all the component names, how will you do that?

2245


Why java is said to be pass-by-value ?

1080


How many types of voids are there?

1022


Is array synchronized in java?

1079


Is void a type?

1020


Is string serializable in java?

1064


What is the use of set in java?

1180


What methods are used to get and set the text label displayed by a button object?

1066