QUESTION 56
Which 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_ExamA' 카테고리의 다른 글
QUESTION 58 (0) | 2018.07.08 |
---|---|
QUESTION 57 (0) | 2018.07.08 |
QUESTION 55 (0) | 2018.07.08 |
QUESTION 54 (0) | 2018.07.08 |
QUESTION 53 (0) | 2018.07.08 |
#IT #먹방 #전자기기 #일상
#개발 #일상