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

how to swap to variables without using thrid variable in java?

Answer Posted / hemant verma

a=a^b^(b=a);

Hemant Verma
FameofLight@gmail.com

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have inheritance without polymorphism?

1032


What is meant by oops concept?

1048


is there any choice in opting subjects like 4 out of 7

2195


What is the significance of classes in oop?

1163


What are constructors in oop?

1195


How Do you Code Composition and Aggregation in C++ ?

25488


What are the benefits of oop?

1264


Write a c++ program to display pass and fail for three student using static member function

3408


What is multilevel inheritance?

1206


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2623


What is constructor in oop?

1121


what are the different types of qualifier in java?

2277


What is the difference between inheritance and polymorphism?

1120


What is the advantage of oop over procedural language?

1091


What is polymorphism what is it for and how is it used?

1023