Can we declare an anonymous class as both extending a class
and implementing an interface?
Answer Posted / imtiyaz
upto my knowledge anonymous class can not extend or
implement another class if so can anyone give the example
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
Why is string class considered immutable?
What are different types of states exist for a thread?
Can we inherit a class with private constructor?
Tell me about your ability to work under pressure
Explain about oops concepts.
Why object class is super class for every class in java?
How do you include a string in java?
What is difference between char array and string?
Is oracle charging for java?
What is compareto () in java?
What is a default method?
What is meant by method?
Explain restrictions for using anonymous inner classes?
Explain about core java?
Can you extend main method in java?