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 encapsulation oop?

666


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

3657


What is the fundamental idea of oop?

736


What is object and class in oops?

682


What is the point of oop?

743






What is the real life example of polymorphism?

711


Explain the concepts involved in Object Oriented programming.

738


How do you define social class?

679


What is abstraction oop?

714


write a programe to calculate the simple intrest and compund intrest using by function overlading

1755


What is encapsulation in simple terms?

637


write knight tour problem which is present in datastructure

2242


What is meant by oops concept?

685


What is abstraction encapsulation?

748


Can destructor be overloaded?

691