首页 > 试题广场 >

以下代码段执行后的输出结果为?publicclassTest

[单选题]
以下代码段执行后的输出结果为?

public class Test {

    public static void main(String args[]) {

        int x = -5;

        int y = -12;

        System.out.println(y % x);

    }

}

  • -1
  • 2
  • 1
  • -2

这道题你会答吗?花几分钟告诉大家答案吧!