public static void main(String[] args){
String s1 = “abc”;
String s2 = “xyz”;
show(s1,s2);
System.out.println(s1+”-----”+s2);
}
static void show(String Ss1,String Ss2){
Ss1 = Ss2+Ss1+”Q”;
Ss2 = “W”+Ss1;
}
a)abc-----xyz
b)xyzabcQ-----xyzWabc
c)xyzabcQ---- xyzabcQWabc
d)xyzQ----Wabc |
|