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 / anthony

cool buddy. Nice way to fool people.

If you really need to check the concept, put the code in
eclipse or netbeans and see. The method in the anonymous
class would show as overriden from interface Test and if
you remove the method from the anonymous class, it would
not compile. So at the end you are having an instance of
class implementing the interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of sizeof operator?

978


When will we use them?

977


What is difference between classpath and path variables in java?

1133


How is hashset defined in java?

962


How do you escape in java?

1003


Enlist diffrent types of inheritance supported by java?

858


What is navigable map in java?

939


What is hashing principle in java?

970


How can we access some class in another class in java?

936


How does thread synchronization occurs inside a monitor?

1039


How is it possible for two string objects with identical values not to be equal under the == operator?

923


Is arraylist ordered?

1004


What is scanner in java?

906


What is finally block?

976


Can constructor return value?

903