What will be written to the standard output when the following program is run?() public class Qcb90 { int a; int b; public void f() { a = 0; b = 0; int[] c = { 0 }; g(b, c); System.out.println(a + " " + b + " " + c[0] + " "); } public void g(int b, int[] c) { a = 1; b = 1; c[0] = 1; } public static void main(String args[]) { Qcb90 obj = new Qcb90(); obj.f(); } }
- A、0 0 0
- B、0 0 1
- C、0 1 0
- D、1 0 0
- E、1 0 1
正确答案:E
答案解析:有
微信扫一扫手机做题