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
Why chararray() is preferred over string to store the password?
Is arraylist zero based?
How do you calculate roots in java?
What is the difference between the boolean & operator and the && operator in java programming?
How many digits can a float hold?
hr interview how many minutes asking question
Does java vector allow null?
What is difference between string and new string?
What are the access modifiers in java?
What are multiple inheritances? Is it supported by java?
How do you ensure that n threads can access n resources without deadlock?
What is the role of garbage collector in java?
Is there a case when finally will not execute?
worst case complexities of Quick sort and Merge sort.
What does it mean to be immutable?