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 difference between a menuitem and a checkboxmenuitem?

1099


What is the difference between the ‘font’ and ‘fontmetrics’ class?

1153


Write a program to show synchronization?

1143


What is the difference between RMI and Corba?

2739


Can I run seam with jdk 1.4 and earlier?

988


Why a client should be multithreading? Explain.

1084


Name three component subclasses that support painting?

1071


Where can I ask questions and make suggestions about seam?

1055


Why is string immutable in java?

1094


Why is actionform a base class rather than an interface?

1059


What is permgen or permanent generation?

1023


which book is better for jdbc ,servlets and jsp

2099


Difference between loadclass and class.forname?

1042


Do I need to import javlang package any time? Why ?

1082


Brief description about local interfaces?

1262