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

What is abstraction example?

1083


What are the 4 main oop principles?

1216


What is an advantage of polymorphism?

1082


What does and I oop mean?

1157


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4131


How does polymorphism work?

1118


Can we create object of abstract class?

1070


What does sksksk mean in text slang?

2102


What are the three main types of variables?

1111


How do you define a class in oop?

1108


What is destructor in oop?

1020


What is the purpose of polymorphism?

1119


Whats is abstraction in oops?

1058


Why multiple inheritance is not possible?

1056


What is the difference between encapsulation and polymorphism?

1089