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
Can we clone singleton object in java?
What is Classloader in Java?
Is oracle java 11 free?
What is a bubble sort in java?
Is void a type?
Where are the local variables stored?
What is tochararray in java?
Is space a char?
Explain the selection sort algorithm and state its time complexity?
What is the main use of java?
What is a function in java?
How do you check if two given string are anagrams?
What is boolean law?
What is method overloading and method overriding?
Name container classes in java programming?