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

Why dependency injection is used in java?

980


What happens when you omit a brace or misspell one of the words, like public or

846


What is jndi datasource in java?

852


What is data encapsulation?

944


What is the difference between java se and java ee?

811


Explain suspend() method under thread class>

984


Why do we only use the main method to start a program?

960


Explain the encapsulation principle.

866


Is openjdk the same as jdk?

881


What is mdb in java?

866


What is injection in java?

891


What is the java api?

871


What is property file in java?

850


How do you count in java?

875


Why struts framework is used in java?

870