国家开放大学 / JAVA语言程序设计
请阅读下列的程序
public class Example01 {
public static void main(String[] args) {
int num = 127;
byte b = num;
System.out.println(b);
}
} 程序的运行结果是( )。
编译报错
编译通过,执行输出127
编译通过,执行报错
以上选项均不正确
public class Example01 {
public static void main(String[] args) {
int num = 127;
byte b = num;
System.out.println(b);
}
} 程序的运行结果是( )。
编译报错
编译通过,执行输出127
编译通过,执行报错
以上选项均不正确
参考答案:
佳题速递: