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 meant by java se?
Explain different way of using thread?
What are tlds in java?
What is gpt and gpc? : java security
What are struts java?
What is the purpose of jdk?
What is ibatis in java?
Explain suspend() method under thread class>
What is @qualifier in java?
Which method is used to create the daemon thread?
What is the java virtual machine (jvm)?
can anyone tell me what kind of questions are asked for core java exam in aptech
What is a cookie in java?
What is meant by annotations in java?
How do I install eclipse?