QUESTION 11자격증/OCJP_ExamC2018. 7. 21. 17:06
Table of Contents
반응형
QUESTION 11Given:10. interface Data { public void load(); }11. abstract class Info { public abstract void load(); }Which class correctly uses the Data interface and Info class?A. public class Employee extends Info implements Data { public void load() { /*do something*/ } }B. public class Employee implements Info extends Data { public void load() { /*do something*/ } }C. public class Employee extends Info implements Data public void load(){ /*do something*/ } public void Info.load(){ /*do something*/ } }D. public class Employee implements Info extends Data { public void Data.load(){ /*do something*/ } public void load(){ /*do something*/ } }E. public class Employee implements Info extends Data { public void load(){ /*do something*/ } public void Info.load(){ /*do something*/ } }F. public class Employee extends Info implements Data{ public void Data.load() { /*do something*/ } public void Info.load() { /*do something*/ } }Solution : A
plus imformation
abstract --> extends
interface -->implements
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 13 (0) | 2018.07.21 |
---|---|
QUESTION 12 (0) | 2018.07.21 |
QUESTION 10 (0) | 2018.07.21 |
QUESTION 9 (0) | 2018.07.21 |
QUESTION 8 (0) | 2018.07.21 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상