QUESTION 15자격증/OCJP_ExamC2018. 7. 21. 18:24
Table of Contents
반응형
QUESTION 15Which two classes correctly implement both the java.lang.Runnable and the java.lang. Cloneable interfaces? (Choose two.)A. public class Session implements Runnable, Cloneable { public void run(); public Object clone(); }B. public class Session extends Runnable, Cloneable { public void run() { /* do something */ } public Object clone() { /* make a copy */ } }C. public class Session implements Runnable, Cloneable { public void run() { /* do something */ } public Object clone() { /* make a copy */ } }D. public abstract class Session implements Runnable, Cloneable { public void run() { /* do something */ } public Object clone() { /*make a copy */ } }E. public class Session implements Runnable, implements Cloneable { public void run() { /* do something */ } public Object clone() { /* make a copy */ } }Solution : CD
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 17 (0) | 2018.07.21 |
---|---|
QUESTION 16 (0) | 2018.07.21 |
QUESTION 14 (0) | 2018.07.21 |
QUESTION 13 (0) | 2018.07.21 |
QUESTION 12 (0) | 2018.07.21 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상