there are 2 variables called x and y ,x contains 1,2 and y
contains 3,4 we have to swap the values from x to y and y
to x with out using dummy variables and it can be done only
by using a single statement ? how?
Answer Posted / sheshadri
String x="1,2";
String y="3,4";
x=(y+"$"+(y=x)).split("[$]")[0];
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a pdo connection?
Why do we need cursor in pl sql?
What is tuple in sql?
how to create a test table in your mysql server? : Sql dba
what are the properties and different types of sub-queries? : Sql dba
How many aggregate functions are available there in sql?
What is identity column in sql server?
How many columns should be in an index?
Explain dml and ddl?
when is the use of update_statistics command? : Sql dba
what is the difference between delete and truncate commands? : Sql dba
What is a clob in sql?
What is the difference between sql and isql*plus?
How do I delete a trigger?
What is not in sql?