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 we declare an anonymous class as both extending a class
and implementing an interface?

Answer Posted / imtiyaz

sorry i will take back my words...
as Devnaga said anonymous class will be created by extending
a class or implementing interface.
you can't to do both at a time simply saying

new SomeClass() extends someOther

we can't write in the same way

new SomeClass() implements someOther

we Can't That's it

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are scriptlets?

1135


What are the two environment variables that must be set in order to run any java programs?

1013


How to sort an unsorted array in java?

1180


What is keyword auto for?

1251


What is javac used for?

984


Does string is thread-safe in java?

1139


What is a pointer and does java support pointers?

1057


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1102


Explain restrictions on using enum?

1146


What is private static class in java?

1060


How to sort a collection of custom Objects in Java?

1104


Tell me the Importent classes in net package?

2039


What do you mean by singleton class in java?

954


What are the advantages and disadvantages of reference counting in garbage collection?

1069


What is the java virtual machine?

1138