我觉得他的意思是问一个类必须要继承的基类:java.lang.Object,so,I choose B.

解决方案 »

  1.   

    内部类必须继承什么类:
    A.它上层的类。
    B.Object类。
    C.任意类或接口。
    D.必须继承一个接口。答案为B
      

  2.   

    可是上面題的答案是C,搞不懂啊。
    再來一個吧,我覺得這個題目出得我摸不著頭腦。答案是B,奇怪啊。
    Given the following code what is the effect of a being 5:public class Test {public void add(int a) {loop: for (int i = 1; i < 3; i++){for (int j = 1; j < 3; j++) {if (a == 5) {break loop;}System.out.println(i * j);}}}}A.Generate a runtime error 
    B.Throw an ArrayIndexOutOfBoundsException 
    C.Print the values: 1, 2, 2, 4 
    D.Produces no output 
    Select the most appropriate answer.
      

  3.   

    我搞错了! 答案应该是D 如果int a不是5的话! 答案就是C