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
How to implement RMI in Java?
What is synchronization and why is it important?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What is the relationship between the canvas class and the graphics class?
What restrictions are placed on the values of each case of a switch statement?
What is a modular application? What does module-relative mean?
What is the difference between RMI registry and OS Agent?
What does module-relative mean?
What is Remote Server?
How a component can be placed on Windows?
what is meant by JRMP?
Explain about RMI Architecture?
What do you need to set-up a cluster with jboss?
Why use POJO when I can use hashmap
Difference between swing and awt?