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

Will the general public have access to the infobus apis?

1119


What value does read() return when it has reached the end of a file?

1076


How would you detect a keypress in a jcombobox?

1185


Is infobus easy to use?

1079


To what value is a variable of the string type automatically initialized?

1167


Is the session factory thread safe?

1229


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

1100


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2829


What is meant by method chaining?

1199


Explain about local interfaces.

1113


If your ui seems to freeze periodically, what might be a likely reason?

1114


What is a modular application?

1135


Where can I ask questions and make suggestions about seam?

1112


What is the difference between ear, jar and war file?

1183


Is “abc” a primitive value?

1156