scjp模拟考题 给出: 1. public class Test { 2. public static void main(String args[]) { 3. class Foo { 4. public int i = 3; 5. } 6. Object o = (Object)new Foo(); 7. Foo foo = (Foo)o; 8. System.out.println(“i = “ + foo.i); 9. } 10. } 结果是什么? A. i = 3 B. 编译失败. C. 在第六行抛出ClassCastException异常. D. 在第七行抛出ClassCas