Posted inJava Notes Interview Question
Q1.Write a Program to swap two numbers in Java
Write a Program to swap two numbers in Java using a third variable Example : Let's Swap: Numbers 1 and 2  Let x= 1, y= 2  Swapping Logic:  take a temp…