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 / nagendra prasadu gandla

Yes you can instanciate but you have to implement the
methods of interface at the time of instanciation itself.

EX:
interface X
{
void abc();
}
class a
{
X z=new X(){void abc(){return;}};
}

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is method with example?

1124


what is bmg file and how to create that files?what will it contailn?

2355


How to use string tokenizer class.

1213


Explain when noclassdeffounderror will be raised ?

1054


How many bits is a boolean?

1090


Can variables be used in java without initialization?

1090


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

1114


How many bytes is a unicode character?

1007


What is an array length?

908


How to create packages in java?

953


Does java support function overloading, pointers, structures, unions or linked lists?

1112


What are serialization and deserialization?

1268


Explain about anonymous inner classes in java?

1090


What is a methodologist?

1071


How do you sort arraylist in descending order?

1022