can we write implementation for a method with in another
method?
Answer Posted / sumitpalsingh
Yes,we can write one method implementation inside another method.
public class ImplementMethodEx {
public void m1(){
System.out.println("M1-Method Impl.");
}
public void m2()
{
m1();
}
public static void main(String[] args) {
ImplementMethodEx obj=new ImplementMethodEx();
obj.m2();
}
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is chat area? Explain.
Do you think that java should have had pointers?
What is a sessionfactory? Is it a thread-safe object?
Explain what is synchronization?
What restrictions are placed on the location of a package statement within a source code file?
How task's priority is used in scheduling?
Define prototype?
What is ioc concept & explain it?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What modifiers may be used with an inner class that is a member of an outer class?
What state does a thread enter when it terminates its processing?
what are memory considerations of jsp compares to other web components?
What is the argument type of a programs main() method?
Is the infobus client side only?
How can I avoid validating a form before data is entered?