Doubt regarding array of int

In previous video the swap function didn’t had int[] temp .
But in this video when we make Swap for arr and other why are we using int[] temp ??? why “int[]”