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

How do I get the | symbol on my keyboard?

1122


what is thread? What are the high-level thread states? : Java thread

1324


Difference between concurrent hashmap and hashtable and collections

1126


What is a dot notation?

1100


What happens to a static var that is defined within a method of a class?

1079


What is the static block?

1116


What is arguments in java?

1056


Why singleton is not thread safe?

1043


How to compare two strings in java program?

1101


Which collection allows duplicate values in java?

1024


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

1081


What is files manifesting?

2255


What are annotations in java?

1139


What are the approaches that you will follow for making a program very efficient?

1126


What is method reference?

1035