Swap two numbers without using temporary or third variable:
Method 1: Swap numbers using XOR method.
Method 2: Swap numbers using addition & subtraction.
Method 3:Swap numbers using multiplication & division.
----------------------------------------------------------------------------------------------------------------------
Program: to swap two variables without using third variable
https://makeinjava.com/swap-two-numbe...
----------------------------------------------------------------------------------------------------------------------
Java Programs for Beginners:
https://makeinjava.com/core-java-begi...
----------------------------------------------------------------------------------------------------------------------
Website Home Page:
https://makeinjava.com/
----------------------------------------------------------------------------------------------------------------------
It's famous interview question asked by leading software organizations for position of Java Programmer (Developer), Automation Engineer (Tester), SDET.
En esta página del sitio puede ver el video en línea Swap two numbers without using third variable in java (3 Methods) de Duración hora minuto segunda en buena calidad , que subió el usuario TechGiant 25 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 44 veces y le gustó 3 a los espectadores. Disfruta viendo!