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 we create a instance for intwerface?

Answer Posted / subhash

No.We cannot create instance for interface.But we can
create reference to an interface.We can implement the
interface by creating sub class(implementation class) and
creat instance to the sub class, then you can create
reference to the interface by assigning instance of sub
class to the interface reference variable.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we instantiate interface in java?

1096


Can java program run without jre?

962


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

1125


What does exclamation mean in java?

1029


What steps are taken when the OS shifts from one-thread execution to another?

1319


Can singleton class be inherited in java?

945


What is final modifier?

994


Explain the Propertie sof class?

1001


What is keyset in java?

1021


What is final, finally, finalize?

1036


What variables are stored in stack?

922


Explain about collection interface in java?

939


What is a parent class in java?

962


What are different types of multitasking?

913


What is an object class?

969