问题详情
public class X { public static void main (String args) { byte b = 127; byte c = 126; byte d = b + c; } } Which statement is true?()
A、 Compilation succeeds and d takes the value 253.
B、 Line 5 contains an error that prevents compilation.
C、 Line 5 throws an exception indicating “Out of range”
D、 Line 3 and 4 contain error that prevent compilation.
E、 The compilation succeeds and d takes the value of 1.
未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。
收藏该题
查看答案
相关问题推荐
-
举例说明Swing控件的事件处理过程。
-
编写一个Java程序,用if-else语句判断某年份是否为闰年。
-
final方法不能被覆盖
A、对
B、错
-
窗体上有一个名称为Picture1的图片框控件,一个子名称为Timer1的计时器控件,其Interval属性值为1000。要求每隔5秒图片框右移100。现编写程序如下:分析以上程序,以下叙述中正确的是( )。
A、程序中没有设置5秒时间,所以不能5秒移动图片框一次
B、此程序运行时图片框位置保持不动
C、此程序运行时图片框移动方向与题目要求相反
D、If语句条件中的“Picture1.Left<Form1.Width”用于限制图片框移动的范围
-
WiMAX常用来表示WMAN或()。