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

Is a class a subclass of itself?

1314


How would you detect a keypress in a jcombobox?

1187


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

1124


What is a tasks priority and how is it used in scheduling?

1107


Which component handles cluster communication in jboss?

1163


What do you mean by Socket Programming?

1136


What are externizable interface?

1111


What are the steps to write p-to-p model application?

2531


What is synchronization and why is it important?

1186


What is the difference between the session.get() method and the session.load() method?

1126


Can you give me a simple example of using the requiredif validator rule?

1184


What is in-memory replication?

1131


Difference between hashmap and hashtable?

1230


Is “abc” a primitive value?

1159


What is the difference between a menuitem and a checkboxmenuitem?

1173