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

What is the purpose of the finally clause of a try-catch-finally statement?

1036


Where can I find seam examples and documentation?

1099


What is ripple effect?

1080


What are the types of scaling?

1091


What is chat area? Explain.

1023


Can I have an action without a form?

1110


What is the purpose of the notify() method?

1077


what is a portable component?

2015


Define the remote object implementation?

2505


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.

2243


What happens when a thread cannot acquire a lock on an object?

1038


What if the static modifier is removed from the signature of the main method?

1241


Why do I get a duplicate name error when loading a jar file?

1152


whats is statement and procedure

2212


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2771