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

Why use POJO when I can use hashmap

2586


What is the difference between session and entity beans?

1045


What is the difference between java class and bean?

1022


How to pass parameters in RMI?

2217


how i secure my site with the https protocol.what are the steps?

2272


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

980


How primary key is implemented in Oracle?

2377


What’s jboss jbpm?

963


Is the infobus client side only?

1059


What is the difference between the session.update() method and the session.lock() method?

963


What are callback interfaces?

1049


Can I have an action without a form?

1046


If your ui seems to freeze periodically, what might be a likely reason?

977


What is the purpose of the wait() method?

1101


What is the purpose of the notify() method?

1015