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
Explain working of java virtual machine (jvm)?
Can I have multiple main methods in the same class?
What is proxy object in java?
How do I run a project in netbeans?
Why doesn't lsdou work under windows nt? : java security
Which is best framework in java?
What is log4j in java?
How do you run an executable jar file?
What is lazy loading in jpa?
What is class path in java?
What is the java api?
What is web container in java?
Why do we only use the main method to start a program?
Is java secure? : java security
Which interceptor is responsible for setting action javabean properties?