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...

Can you have a constructor in abstract class?

Answer Posted / abdul hannan

Yes. We can have constructor in an abstract class but we can
not directly instantiate it. If the abstract class have no
argument constructor, it will automatically call by the
constructor of subclass through constructor chaining. If
abstract class have constructor with argument, then we need
to call it by super() and pass the argument in it.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the overview of UDP messaging.

1087


What is an exception in java?

1077


What is indexof in java?

951


How to stop a thread in java? Explain about sleep () method in a thread?

978


How can we pass argument to a function by reference instead of pass by value?

1061


What is the use of runnable interface?

1094


What does a void function return?

967


Explain some best practices you would apply while using collection in java?

993


What is void data type?

932


Name few java util classes introduced with java 8 ?

882


Is vector synchronized in java?

943


difference between byte stream class and character stream class?

4496


What is * argv?

1178


What is bubble sort in java?

1009


What is a short in java?

980