🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.It is a marker interface with no methods
  2. B.It declares a public clone() method
  3. C.It makes clone() perform a deep copy
  4. 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 →