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 rtm in testing?
What is delimiter sql?
give the syntax of grant and revoke commands? : Sql dba
What is before trigger?
What are the 3 modes of parameter?
how can we repair a mysql table? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
Can you do multiple joins in sql?
How do I tune a sql query?
What is pragma in pl sql?
What does <> sql mean?
Enlist the advantages of sql.
Explain the difference between 'between' & 'and' operators in sql
What are the steps for performance tuning.
What is nosql db?