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
What is the difference between a menuitem and a checkboxmenuitem?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
Write a program to show synchronization?
What is the difference between RMI and Corba?
Can I run seam with jdk 1.4 and earlier?
Why a client should be multithreading? Explain.
Name three component subclasses that support painting?
Where can I ask questions and make suggestions about seam?
Why is string immutable in java?
Why is actionform a base class rather than an interface?
What is permgen or permanent generation?
which book is better for jdbc ,servlets and jsp
Difference between loadclass and class.forname?
Do I need to import javlang package any time? Why ?
Brief description about local interfaces?