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

What are the advantages of lambda functions?

939


differences between iterator and spliterator in java se 8?

929


Why java?

910


What is cookie in java?

855


In java thread programming, which method is a must implementation for all threads?

976


What is numberformatexception in java?

866


What is crud operations in java?

875


can anyone tell me what kind of questions are asked for core java exam in aptech

1833


What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

893


What is singleton pattern in java?

828


What is javax annotation generated?

921


What is the difference between a jdk and a jvm?

891


What is map and flatmap?

1007


What is jpa entitymanager?

912


What is a java proxy?

942