can we write implementation for a method with in another
method?
Answer Posted / sharan raj
Yes, a method can be implemented within another method
using anonymous class.
using anonymous class: new ClassName({...});
For more details regarding anonymous class refer any java
document.
Is This Answer Correct ? | 29 Yes | 4 No |
Post New Answer View All Answers
What is a policy?
What is ioc concept & explain it?
What are the steps to write p-to-p model application?
What event results from the clicking of a button?
How primary key is implemented in Oracle?
What is the difference between RMI registry and OS Agent?
What are the pros and cons of detached objects?
what is a portable component?
What are the different algorithms used for clustering?
What modifiers may be used with an interface declaration?
Difference between new operator and class.forname().newinstance()?
Explain the different types of memory used by jvm?
What is in-memory replication?
How will you pass parameters in RMI? Why do you serialize?
How a component can be placed on Windows?