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.
what is a portable component?
Explain the advantages and disadvantages of detached objects.
Explain about RMI Architecture?
What are the services in RMI ?
How is a java object message delivered to a non-java client?
Difference between DurableSubscription and non- DurableSubscription?
What is threadfactory?
What is RMI and what are the services in RMI?
Name three component subclasses that support painting?
the same information whether it will connect to the database or it will be used previous information?
What you mean by COM and DCOM?
Explain phantom read?
which type of objects reference will be given to client?
What happens when a thread cannot acquire a lock on an object?