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
Describe responsibilities of Activator?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Explain the difference between object state and behavior?
Can I run seam outside of jboss as?
What are various types of class loaders used by jvm?
What is glasgow?
What is the difference between the string and stringbuffer classes?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What do you need to set-up a cluster with jboss?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What is a modular application? What does module-relative mean?
What are the sequence of steps to write pub or sub model kind of application?
What classes of exceptions may be caught by a catch clause?
What is the highest-level event class of the event-delegation model?
Is it possible to stop the execution of a method before completion in a sessionbean?