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
How do I count duplicates in sql?
What is mutating table error?
What is hibernate and its relation to sql?
What are the parameter modes supported by pl/sql?
what is rdbms? : Sql dba
Is null operator in sql?
Differentiate pl/sql and sql?
How many joins in sql?
what is acid property in database? : Sql dba
What are the benefits of pl/sql packages?
what are the join types in tsql? : Transact sql
what are date and time data types in mysql? : Sql dba
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
what is 'mysqladmin' in mysql? : Sql dba
Is sqlite free?