下列程序的输出结果是( ) class StringDemo{ public static void main(String[] args){ String s1 = “a”; String s2 = “b”; show(s1,s2); System.out.println(s1+s2); } public static void show(String s1,String s2){ s1 = s1 +“q”; s2 = s2 + s1; } }
A、a
B、aq
C、aqbaq
D、aqaq
发布时间:2024-09-30 19:00:12