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
What are the advantages of lambda functions?
What happens when you omit a brace or misspell one of the words, like public or
What are orm tools in java?
Explain main thread under thread class execution?
What kind of thread is the garbage collector thread?
What are the authentication modes in asp.net? : java security
What is dao in java?
Which version of my browser should I use? : java security
Explain different way of using thread?
Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.
What is tuple2?
What are the rules regarding quotation marks?
can a program use more than one command-line argument?
What is flatmap java?
What does public static void main(string[]) mean?