移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

public class X {   public static void main (Stringargs) {   int a = new int [1]   modify(a);   System.out.printIn(a[0]);   }   public static void modify (int a) {   a[0] ++;    }    }   What is the result?()  

发布日期:2022-07-12

public class X {   public static void main (String...
A

The program runs and prints “0”

B

The program runs and prints “1”

C

The program runs but aborts with an exception.

D

An error “possible undefined variable” at line 4 causes compilation to fail.

E

An error “possible undefined variable” at line 9 causes compilation to fail.

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!