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

Explain the private field modifier?

1149


How can you set the applet size?

1105


How are multiple inheritances done in Java?

1195


What is application tier?

1180


How do you trim a space in java?

1024


What is the use of math abs in java?

1065


What are the types of collections in java?

1116


What do you mean by Function Overloading in java?

1219


How does multithreading take place on a computer with a single cpu in java programming?

1058


How transient variable is different from volatile variable?

1131


What is thread count in java?

1053


Is string is a data type?

990


What do you understand by classes in java?

1046


Which browsers work with java?

1113


why Interface used?

1030