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
Explain what is orm?
What is the relationship between an event-listener interface and an event-adapter class?
What is difference between object state and behavior?
How are commas used in the intialization and iteration parts of a for statement?
what are the advantages of JTA over JTS?
How to pass parameters in RMI?
difference between ejb,struts,hibernate,spring and jsp
Do I need to import javlang package any time? Why ?
what is an isolation level?
Can you control when passivation occurs?
Can I run seam with jdk 1.4 and earlier?
What are various types of class loaders used by jvm?
What is the difference between a static and a non-static inner class?
How task's priority is used in scheduling?
How are the elements of a borderlayout organized?