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
What are the characteristics of java?
Which sorting algorithm is in place?
What are the Main functions of Java?
What is java reflection?
What is variable and constant explain with example?
What does string mean in java?
What is final keyword in java? Give an example.
Is object a data type in java?
What is numel matlab?
How will you invoke any external process in java?
What is meant by binding in rmi?
How to overcome the exception object reference not set to an instance of object?
Can java list be null?
What is the meaning of flag day?
What is a conditional equation?