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