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 I have constructor in Interface?

Answer Posted / suresh

No a interface should not have constructor,
Because, interface will not extends with object class.
if any class extends with object class then atleast one
constructor should be there, if user fail to keep the
constructor the compiler will keep a default constructor
with first statement as super();.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does opcode mean?

1082


What is the difference between iterator and enumeration ?

1005


How does compareto work in java?

1039


What is void keyword?

1101


What does the “static” keyword mean?

1102


What is multiple inheritance? Is it supported by java?

964


What is toarray method in java?

1100


Can a static block throw exception?

1095


Can we have a method name same as class name in java?

1052


What modifiers may be used with an inner class that is a member of an outer class in java programming?

1101


enlist some features of jdk.

955


Write a code to create a trigger to call a stored procedure

979


What are basic data types?

1095


What is parsing in java?

959


What is the advantage of OOP in java?

1149