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
Is a class a subclass of itself?
How would you detect a keypress in a jcombobox?
What do you need to set-up a cluster with jboss?
What is a tasks priority and how is it used in scheduling?
Which component handles cluster communication in jboss?
What do you mean by Socket Programming?
What are externizable interface?
What are the steps to write p-to-p model application?
What is synchronization and why is it important?
What is the difference between the session.get() method and the session.load() method?
Can you give me a simple example of using the requiredif validator rule?
What is in-memory replication?
Difference between hashmap and hashtable?
Is “abc” a primitive value?
What is the difference between a menuitem and a checkboxmenuitem?