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
Define canvas?
What is the difference between a constructor and a method?
What is instanceof keyword?
What are exception handling keywords in java?
How do you call a reference in java?
What is the difference between checked exception and unchecked exception?
what is the difference between the methods sleep() and wait()? : Java thread
What is the maximum size of byte array in java?
How many bits is a word?
What is the best way to findout the time/memory consuming process?
What is the difference between this() and super() in java?
Explain about public and private access specifiers?
What is treeset and treemap in java?
What is linked hashset and its features?
Explain about complier design(phases)