Please, what is the term for methods that change the contents of a variable so far does not return anything.
For example, in Java from the java.util.Arrays class, the static sort method sorts the array internally and sets the sorted array to the original array variable (not sure).
import static java.util.Arrays.sort; public class bs { public static void main(String [] args){ int[] arr = {3,2,4,8,2,5,33,12,19,15,20}; sort(arr);
1 . Is there a specific term for such a method,
and
2 . How does it work domestically? Does the original variable delete and assign the sorted values ββfresh with the same name or?
Thanks!!
source share