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

what is the use of State Factories?

2328


What are callback interfaces?

1052


wahts is mean by dynavalidatorform in struts/

1997


Why won’t the jvm terminate when I close all the application windows?

1191


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.

2204


What must a class do to implement an interface?

1097


Is infobus easy to use?

989


What is the purpose of the wait() method?

1108


Are we allowed to change the transaction isolation property in middle of a transaction?

986


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

1018


Is there a guarantee of uniqueness for entity beans?

961


Where can I ask questions and make suggestions about seam?

1016


Brief description about local interfaces?

1191


What is message driven beam?

1002


What event results from the clicking of a button?

1174