Can we declare an anonymous class as both extending a class
and implementing an interface?
Answer Posted / devnaga
No. An anonymous class can extend a class or implement an
interface, but it cannot be declared to do both
| Is This Answer Correct ? | 26 Yes | 0 No |
Post New Answer View All Answers
What is thread start?
What is a class in java?
What are the different ways to handle exceptions?
What is the purpose of the System class?
How do you start a thread?
What is constant in programming?
What does split function do in java?
What is int argc char * argv?
How do you sort data in java?
What is an inner class in java?
What is finally block?
Give the hierarchy of inputstream and outputstream classes.
What is better - 'bit-shift a value' or 'multiply by 2'?
What is difference between filereader and bufferedreader?
What is a final class ?