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

Do extraneous variables affect validity?

520


How to connect to a remote database using Applet?

2038


How many tetrahedral voids are there in bcc?

539


Can an integer be a string?

505


when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

1668






What are mutable classes?

517


What is string [] args?

551


What is size of int in java?

540


What does string [] args mean?

536


Can a function return a function?

541


Why we use set in java?

508


How to create a fecelet view?

550


Explain about the dynamic behavior of core java?

628


What is primitive data type in java?

535


Is string an object?

644