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 the default access specifier for variables and methods of a class?

1255


What is meant by flickering?

1133


What is Classloader in Java?

1297


When can an object reference be cast to an interface reference in java programming?

1068


What is jit compiler ?

1039


What is getclass () getname () in java?

1197


What is mvc in java?

1063


Who developed java?

1058


what is difference between equals and ==?

1124


What is object cloning in Java?

1151


Is it possible to override the main method?

1041


What are internal and external variables?

1009


What are the advantages and disadvantages of object cloning?

1164


What is the difference between Grid and Gridbaglayout?

1341


Is heap stored in ram?

1018