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 is java flatmap?
In which language eclipse is developed?
How do I export a java project?
What is jar file in java?
Explain the common use of ejb?
What is the use of jprofiler?
What gives java it’s “write once and run anywhere” nature?
How do you check if java is installed on windows command prompt?
What is loose coupling in java?
In system.out.println(), what is system, out and println?
What is tuple2?
What is cache in java?
What is the use of rs next () in java?
What are the benefits of a jar file?
What is javax annotation generated?