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 different types of multitasking?

902


Explain the difference between jdk, jre, and jvm?

994


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

937


Can a class have a static inner class?

1029


Should a main method be compulsorily declared in all java classes?

996


What is the difference between yielding and sleeping in java programming?

1072


Is an integer an object?

902


What is an argument java?

919


What is difference between throw and throws ?

1078


Is alive in java?

896


What is java reflection api?

966


What are some characteristics of interference class?

944


What is the meaning of flag day?

962


What is the differences between c++ and java? Explain

996


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

998