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 the purpose of the finally clause of a try-catch-finally statement?
Where can I find seam examples and documentation?
What is ripple effect?
What are the types of scaling?
What is chat area? Explain.
Can I have an action without a form?
What is the purpose of the notify() method?
what is a portable component?
Define the remote object implementation?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What happens when a thread cannot acquire a lock on an object?
What if the static modifier is removed from the signature of the main method?
Why do I get a duplicate name error when loading a jar file?
whats is statement and procedure
Where we can write Rmi registry in the code, without having to write it at the command prompt?