可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

1. public class Test&e


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.
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、public class test( &en

public class test(   public int aMethod()[  static int i=0;  i++;  return I;&en...

2、Public class test (&en

Public class test ( Public static void stringReplace (String text)  ( Text = text.replace&e...

3、1.public class Test {&

1.public class Test { 2.public static void main (String args[]) { 3.class Foo { 4.public&ensp...

4、1.public class test (&

1.public class test ( 2.public static void main (String args[])    { 3.int  i&ensp...

5、11. public class Test&

11. public class Test { 12. public void foo() { 13. assert false; 14. assert false;&en...

6、1. public class Test&e

1. public class Test { 2. int x= 12; 3. public void method(int x) { 4. x+=x;&ensp...