Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Describe responsibilities of Activator?

2275


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1062


Explain the difference between object state and behavior?

1054


Can I run seam outside of jboss as?

1078


What are various types of class loaders used by jvm?

1000


What is glasgow?

1058


What is the difference between the string and stringbuffer classes?

1103


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2209


What do you need to set-up a cluster with jboss?

1076


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4275


What is a modular application? What does module-relative mean?

1063


What are the sequence of steps to write pub or sub model kind of application?

2519


What classes of exceptions may be caught by a catch clause?

1041


What is the highest-level event class of the event-delegation model?

1100


Is it possible to stop the execution of a method before completion in a sessionbean?

1091