Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to implement RMI in Java?

2841


What is synchronization and why is it important?

1051


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1092


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

998


What restrictions are placed on the values of each case of a switch statement?

962


What is a modular application? What does module-relative mean?

1004


What is the difference between RMI registry and OS Agent?

1081


What does module-relative mean?

1083


What is Remote Server?

2158


How a component can be placed on Windows?

2793


what is meant by JRMP?

2283


Explain about RMI Architecture?

1039


What do you need to set-up a cluster with jboss?

1030


Why use POJO when I can use hashmap

2598


Difference between swing and awt?

1203