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
Will the general public have access to the infobus apis?
What value does read() return when it has reached the end of a file?
How would you detect a keypress in a jcombobox?
Is infobus easy to use?
To what value is a variable of the string type automatically initialized?
Is the session factory thread safe?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What is meant by method chaining?
Explain about local interfaces.
If your ui seems to freeze periodically, what might be a likely reason?
What is a modular application?
Where can I ask questions and make suggestions about seam?
What is the difference between ear, jar and war file?
Is “abc” a primitive value?