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...

write a code in jsp to swap two numbers?

Answer Posted / p.a.v.k.prasad

Swapping the two nubers without using third variable.

int a,b;

b=a+b;
b=a-b;
a=a-b;

try it.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method is used to create the daemon thread?

900


What is lazy loading in jpa?

815


What is mq in java?

820


Is lambda functional programming?

813


How can you work with permissions from your .net application? : java security

855


What are tlds in java?

816


What is jpa implementation?

833


What about products that claim to block java applets at a firewall? : java security

885


What is phantom memory?

886


Can optional be null?

907


How do I know if I have jre or jdk?

839


How does java handle integer overflows and underflows?

961


What is tuple2?

892


What is java api?

834


What do you understand by numeric promotion?

947