Question: Scala bytecode can run on top of Java VM. What is the fundamental difference between Java object.clone() and Scala object.copy()?

  1. One is a Java object, the other is a Scala object.
  2. clone() will copy class structures but not the data, while copy() will also copy data into new objects.
  3. There is no difference.
  4. copy() allows you to change values during the copying process; clone() does not.

Answer: The correct answer of the above question is Option D:copy() allows you to change values during the copying process; clone() does not.