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
worst case complexities of Quick sort and Merge sort.
What is locale?
Why java applets are more useful for intranets as compared to internet?
What is percentage in java?
Difference between character constant and string constant in java ?
How do you control extraneous variables?
What are scriptlets?
What is the major difference between linkedlist and arraylist?
What is meant by interface?
State some situations where exceptions may arise in java?
What is array size in java?
What is a file pointer?
Which of the following is not an isolation level in the JDBC
Can we return null in java?
Is array primitive data type in java?