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 instantiate Interfaces?

Answer Posted / anil pusuluri

One can't instantiate an interface. One can get a reference
to an interface.

Let's say Class A implements interface iA then we can't
instantiate IA
like IA a = new IA() -- this gives compilation error.

but we can get the referance to interface as below

IA a = new A()

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between future and callable interface in java?

1145


What is jagged array in java?

1007


Does importing a package imports its sub-packages as well in java?

923


What does it mean that a class or member is final?

938


What is main function purpose?

965


What are advantages of using Java?s layout managers than windowing systems?

2316


How do you sort in descending order in java using collections sort?

846


How do you write a conditional statement?

896


explain different ways of using thread? : Java thread

959


What is passing value java?

997


When can you say a graph to be a tree?

1026


How you can force the garbage collection?

929


What are the features of java?

1006


What is java Applet?

1033


What are loops in java?

1156