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
Why use POJO when I can use hashmap
What is the difference between session and entity beans?
What is the difference between java class and bean?
How to pass parameters in RMI?
how i secure my site with the https protocol.what are the steps?
What is the relationship between the canvas class and the graphics class?
How primary key is implemented in Oracle?
What’s jboss jbpm?
Is the infobus client side only?
What is the difference between the session.update() method and the session.lock() method?
What are callback interfaces?
Can I have an action without a form?
If your ui seems to freeze periodically, what might be a likely reason?
What is the purpose of the wait() method?
What is the purpose of the notify() method?