Answer Posted / rakesh.fanu
class SwapingTest
{
public static void main(String xx[])
{
int a,b,temp;
a=10;
b=20;
System.out.println("Before Swaping :-");
System.out.println("Value a is "+a);
System.out.println("Value b is "+b);
temp=b;
b=a;
a=temp;
System.out.println("After Swaping :-");
System.out.println("Value a is "+a);
System.out.println("Value b is "+b);
}
}
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
How do I install java re?
What is dependency injection in java?
What is jep in java?
program A and B are analysed and found to have worst case running time greater than 150NlogN and N*N respectively. which program has the better guarantee after the running time for the large values of N(N>10000)? which program has the better guarantee for the running time of small program N (N<100)? which program will run faster on average for N=1000?
What is the difference between deep copy and shallow copy in java
What type of parameter passing does java support?
Why is javac not recognized?
What is the means of java?
What is profile in java?
Does netbeans need jdk?
Is it better to learn java or python?
How do I open the java control panel?
What are the disadvantages of java sockets?
Can the main method be declared final?
What are the authentication modes in asp.net? : java security