欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

 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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题