【问题】 下列代码段的运行结果为() public class Test { public static void main(String[] args) { int num = 0b10; System.out.println("current value:" + num); }}A current value: 10. B. 编译错误C. current value: 2 D. current value is 8

下列代码段的运行结果为() public class Test { public static void main(String[] args) { int num = 0b10; System.out.println("current value:" + num); }}A current value: 10. B. 编译错误C. current value: 2 D. current value is 8

正确答案:C

题目解析:本题出自国家开放大学,国际开放大学Java语言程序设计,由丰阳塔题库搜集整理。