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


Please Help Members By Posting Answers For Below Questions

Explain what is synchronization?

833


What is the relationship between the canvas class and the graphics class?

764


What is meant by method chaining?

885


whats is mean by tiles in struts

1870


Why does the tag url-encode javascript and mailto links?

786


what is meant by JRMP?

2013


Will the general public have access to the infobus apis?

776


Where can I ask questions and make suggestions about seam?

828


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

778


Which container method is used to cause a container to be laid out and redisplayed?

886


Is infobus easy to use?

798


Is there a guarantee of uniqueness for entity beans?

750


What is aop(assepct oriented programing)?

792


What are the types of scaling?

796


Can I use javascript to submit a form?

877