0 votes
in Scala - The Diatonic Syallable by
Scala bytecode can run on top of Java VM. What is the fundamental difference between Java object.clone() and Scala object.copy()?

 a. One is a Java object, the other is a Scala object.

 b. clone() will copy class structures but not the data, while copy() will also copy data into new objects.

 c. There is no difference.

 d. copy() allows you to change values during the copying process; clone() does not.

1 Answer

0 votes
by
Correct answer:- copy() allows you to change values during the copying process; clone() does not.
...