下面程序的运行结果是什么
public static void main(String[] args){
String s1 = “abc”;
String s2 = “xyz”;
show(s1,s2);
System.out.println(s1+”-----”+s2);
}
static void show(String s1,String s2){
s1 = s2+s1+”Q”;
s2 = “W”+s1;
}
a)abc-----xyz
b)xyzabcQ-----xyzWabc
c)xyzabcQ---- xyzabcQWabc
d)xyzQ----Wabc
|
|