Final answer:
After calling selectionSort on an array in Java, the original array is modified to be sorted, thus losing the original order of its randomly generated elements.
Step-by-step explanation:
The selectionSort method you are asked to implement in Java is an in-place sorting algorithm, meaning it sorts the array by modifying the array directly, rather than creating a new sorted array and leaving the original unchanged. Once a sorting algorithm like selectionSort is executed, the array elements are rearranged to be in sorted order; thus the original order of the randomly generated numbers is lost.
In your Java project, when you call selectionSort on an array, it reorders that array's elements in ascending order by repeatedly finding the minimum element (considering ascending order) from the unsorted part and putting it at the beginning. This operation changes the original positions of each element, therefore the original random array can no longer be displayed without having kept a separate copy before the sorting took place.