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.
Q 1 / 52
Press C to Clear
Press R to Reset
Press N or Enter to Next or Check answer
Press 1,2,3, ... to toggle answers