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
Explain what is synchronization?
What is the relationship between the canvas class and the graphics class?
What is meant by method chaining?
whats is mean by tiles in struts
Why does the tag url-encode javascript and mailto links?
what is meant by JRMP?
Will the general public have access to the infobus apis?
Where can I ask questions and make suggestions about seam?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
Which container method is used to cause a container to be laid out and redisplayed?
Is infobus easy to use?
Is there a guarantee of uniqueness for entity beans?
What is aop(assepct oriented programing)?
What are the types of scaling?
Can I use javascript to submit a form?