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

Is c better than java?

919


What is a boolean used for?

1079


How do you write a conditional statement?

916


Outline the major features of java.

1050


What are strings in physics?

979


Explain where variables are created in memory?

979


What are Normalization Rules? Define Normalization?

999


What is token in java?

979


How would overload a function based on return type?

931


What is linked hashmap and its features?

982


What is the use of http-tunneling in rmi?

1018


Can java arraylist hold different types?

1014


What are the important features of Java 9 release?

967


Differentiate between the constructors and methods in java?

909


Write a method to check if input string is palindrome?

981