black

SCJP程序员认证考试

登录

单项选择题

1. public class Outer{ 
2. public void someOuterMethod() { 
3. // Line 3 
4. } 
5. public class Inner{} 
6. public static void main( String[]argv ) { 
7. Outer o = new Outer(); 
8. // Line 8 
9. } 
10. } 
Which instantiates an instance of Inner?()  

A. new Inner(); // At line 3
B. new Inner(); // At line 8
C. new o.Inner(); // At line 8
D. new Outer.Inner(); // At line 8

相关考题

单项选择题 1. public class ReturnIt {  2. return Type methodA(byte x, double y) {  3. return (short)x / y * 2;  4. }  5. }  What is the narrowest valid returnType for methodA in line2?()

多项选择题 InwhichtwocasesdoesthecompilersupplyadefaultconstructorforclassA?()

单项选择题 11. public class Test {  12. public void foo() {  13. assert false;  14. assert false;  15. }  16. public void bar(){  17. while(true){  18. assert false;  19. }  20. assert false;  21. }  22. }  What causes compilation to fail?()

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064