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
Do extraneous variables affect validity?
How to connect to a remote database using Applet?
How many tetrahedral voids are there in bcc?
Can an integer be a string?
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???
What are mutable classes?
What is string [] args?
What is size of int in java?
What does string [] args mean?
Can a function return a function?
Why we use set in java?
How to create a fecelet view?
Explain about the dynamic behavior of core java?
What is primitive data type in java?
Is string an object?