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 chat area? Explain.

1016


what is a portable component?

1999


Explain the advantages and disadvantages of detached objects.

1018


Explain about RMI Architecture?

1074


What are the services in RMI ?

2342


How is a java object message delivered to a non-java client?

1044


Difference between DurableSubscription and non- DurableSubscription?

2186


What is threadfactory?

1082


What is RMI and what are the services in RMI?

1153


Name three component subclasses that support painting?

1066


the same information whether it will connect to the database or it will be used previous information?

1033


What you mean by COM and DCOM?

1053


Explain phantom read?

2217


which type of objects reference will be given to client?

2478


What happens when a thread cannot acquire a lock on an object?

1031