adplus-dvertising
frame-decoration

Question

Any class using the built-in cloning mechanism is supposed to do which of the following?

a.

Implement the Cloneable interface

b.

Define a concrete public or protected clone() operation

c.

In the clone() operation, obtain a new object by calling super.clone()

d.

All of the mentioned

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Any class using the built-in cloning mechanism is supposed to do which of the following?