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 is 32 bit float?

1005


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1351


can I implement my own start() method? : Java thread

999


Why array is used in java?

981


What are java packages? What's the significance of packages?

1335


What is anagram number?

960


What is a null point?

1090


What is the flag in java?

1071


What are the concepts of 'OOPS'?

1084


What is a parameter in a function?

1005


What are the six ways to use this keyword?

1067


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1122


What data structures are used to perform recursion?

1066


Where are local variables stored?

977


What is the purpose of static methods and variables?

1051