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 is the use of isempty in java?

973


What is the symbol for space?

935


What is java and their uses?

977


Explain about varargs in java?

1068


Can a serialized object be transferred via network?

900


What is meant by the value of a variable?

870


What is double parsedouble in java?

970


What is append in java?

1101


What do you know about the garbate collector?

986


Why do we create public static method in java?

1052


Can we force the garbage collection to run?

902


What are the advantages of assembly language?

881


If you are given the name of the function at run time how will you invoke the function?

1086


What is meant by data hiding in java?

1089


How we can run a jar file through command prompt in java?

916