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 / saroj kumar biswal

no we can't have constructor in an interface, why bcz constructor is used to initialize the instance variable stored in an object. Constructor is called concurrently while creating object. We can't create object to interface & also we can't provide instance variable to interface. So we can't use constructor in an interface

Is This Answer Correct ?    30 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is identifier give example?

975


What are computer functions?

883


Are registers volatile?

885


Why is java logo a cup of coffee?

1076


What is use of inner class in java?

1039


What are the java ide's? Explain

965


How do you create a method in java?

945


What is consumer interface?

948


Who is the owner of java?

953


explain copyonwritearraylist and when do we use copyonwritearraylist?

904


What is run time allocation?

977


Can we use catch statement for checked exceptions?

917


Can you instantiate the math class?

994


Can we use this () and super () in a method?

928


What is the difference between private & public & friendly classes?

1019