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 you create interface instance ?

Answer Posted / sanddep

what uday did here was not creating the instance of the interface but he implemeted the interface through the anonymous class.Now the instance created is of that anonymous class which has implemented the interface and its reference is stored in the variable t.

Regards
Sandeep

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 method in research paper?

1126


Where are register variables stored?

1012


How do you access command-line arguments within the code?

1053


Which method cannot be overridden in java?

987


Are arrays primitive data types?

1179


What is replaceall in java?

1020


What is the purpose of a parameter?

1067


What is the Scope of Static Variable?

1225


Which is the class in java?

1038


Can we store variables in local blocks?

1344


How can we make a class singleton?

1061


Is it possible to override the main method?

975


What is mean by encoding?

1073


How is final different from finally and finalize?

924


What is difference between length and length() method in java ?

991