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 the use of State Factories?
What are callback interfaces?
wahts is mean by dynavalidatorform in struts/
Why won’t the jvm terminate when I close all the application windows?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What must a class do to implement an interface?
Is infobus easy to use?
What is the purpose of the wait() method?
Are we allowed to change the transaction isolation property in middle of a transaction?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Is there a guarantee of uniqueness for entity beans?
Where can I ask questions and make suggestions about seam?
Brief description about local interfaces?
What is message driven beam?
What event results from the clicking of a button?