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 jpa annotations?
Does ms edge support java?
What is serializable in java?
What is aop in java?
What is the meaning of loosely coupled in java?
How do you run an executable jar file?
What is the use of lambda functions?
Is java a framework?
What do you understand by casting in java language? What are the types of casting?
What is a yaml file in java?
Which method is used to create the daemon thread?
What is the difference between ec2 and lambda?
How do javabeans work?
Why are command line arguments passed as a string?
How do you check if java is installed on windows command prompt?