多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

1. public class Test {  2. public static void main (String []args)  {  3. unsigned byte b = 0;  4. b--;  5.     6.   }  7. }   What is the value of b at line 5?()  

  • A、 -1
  • B、 255
  • C、 127
  • D、 Compilation will fail.
  • E、 Compilation will succeed but the program will throw an exception at line 4.
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题