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
Describe, in general, how java's garbage collector works?
What are the different class loaders used by jvm?
Define aop(assepct oriented programing)?
Is a class a subclass of itself?
What is threadfactory?
Do I need to import javlang package any time? Why ?
What you mean by COM and DCOM?
Explain the difference between object state and behavior?
How substring() method of string class create memory leaks?
What is ripple effect?
What is the difference between session and entity beans?
What are the call back methods in entity bean?
which type of objects reference will be given to client?
What is the immediate superclass of the applet class?
What is a modular application? What does module-relative mean?