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 meant by design patterns?

1020


What is data member in java?

1032


How are variables stored in memory?

1058


Why do we need autoboxing in java?

984


What are the 7 types of characters?

1069


How list contains works in java?

975


How to optimize the javac output?

1007


What is extension method in java?

1031


What is math exp in java?

1038


Why pointers are not used in java?

1119


How do you use find and replace?

949


Can a method inside a interface be declared as final?

995


Does list allow duplicates in java?

925


What is difference between ++ I and I ++ in java?

963


What are classloaders?

1011