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 meant by abstract class?

1181


What is java jit compilers?

1059


How many bytes is double?

1046


How java is similar to c?

1089


What are different types of control structures?

1030


Is minecraft java edition free?

1166


Java is Pass by Value or Pass by Reference?

1094


What is the maximum size of arraylist in java?

1061


Why string is immutable with example?

1035


What is the purpose of lambda expressions?

1108


Why do we need autoboxing in java?

1057


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1361


Is node a data type in java?

1058


Define inheritance?

1074


Is a boolean 1 bit?

1121