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 the difference between map and flatmap in java?
What is loose coupling in java?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
What's a code group? : java security
Explain working of java virtual machine (jvm)?
What about products that claim to detect malicious applets? : java security
How does jpa repository work?
What is lambda value?
What is savepoint in java?
can anyone tell me what kind of questions are asked for core java exam in aptech
What is a service layer in java?
Do I really have to type in the programs in the book to try them out?
What can open a jar file?
What is transaction management in java?
What are the types of cookies in java?