What is the purpose of the following code segment?
int[] newArray = Arrays.copyOf(oldArray, oldArray.length);
Reverses the order of elements in oldArray
oldArray
Creates a new array with the same elements as oldArray
Checks if oldArray is empty
Deletes all elements in oldArray