QUESTION 28자격증/OCJP_ExamB2018. 7. 10. 17:19
Table of Contents
반응형
QUESTION 28
Given:
10. interface Foo { int bar(); }
11. public class Sprite {
12. public int fubar( Foo foo ) { return foo.bar(); }
13. public void testFoo() {
14. fubar(
15. //insert code here
16. );
17. }
18. }
Which code, inserted at line 15, allows the class Sprite to compile?
A. Foo { public int bar() { return 1; }
B. new Foo { public int bar() { return 1; }
C. new Foo() { public int bar() { return 1; }
D. new class Foo { public int bar() { return 1; }
Solution : C
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 30 (0) | 2018.07.10 |
---|---|
QUESTION 29 (0) | 2018.07.10 |
QUESTION 27 (0) | 2018.07.10 |
QUESTION 26 (0) | 2018.07.10 |
QUESTION 25 (0) | 2018.07.10 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상