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's the access scope of protected access specifier?

1098


What are filterstreams?

1117


What is return in java?

1029


Are there structures in java?

1030


Write a code to create a trigger to call a stored procedure

1030


What is the null?

1060


In a container there are 5 components. I want to display the all the components names, how will you do that one?

1083


Can we call the constructor of a class more than once for an object?

1140


Explain exception chaining in java?

1225


explain autoboxing in java?

1050


How do you initialize an arraylist in java?

1098


Describe the process as to how substring() methodology mechanisms in java.

1206


Are true and false keywords?

1069


What is a bufferedreader?

1166


what is thread? : Java thread

1042