← Quiz: Shallow and Deep Copy: all 10 questions
Quiz: Shallow and Deep Copy · Question 6 of 10
Which statement about Cloneable is true?
Which statement about Cloneable is true?
- A.It is a marker interface with no methods
- B.It declares a public clone() method
- C.It makes clone() perform a deep copy
- D.It is required for copy constructors
Answer & explanation
Correct answer: It is a marker interface with no methods
Cloneable only tells Object.clone() that copying is allowed; clone() itself is in Object.
Can you get the rest right without peeking?
Take the timed Quiz: Shallow and Deep Copy quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →