Here are three different swap methods each intended for use
Here are three different swap methods, each intended for use in a client program. I public static void swap(int a, int b) {int temp = a; a = b; b = temp;} II public static void swap(Integer obj_a, Integer obj_b) {Integer temp - new Integer (obj_a. intValue ()); obj_a obj_b; obj_b = temp;} III public static void swap(iIntPair pair) {int temp = pair.getFirst(); pair.setFirst(pair.getSecond()); pair.setSecond(temp);} When correctly used in a client program with appropriate parameters, which method will swap two integers, as intended? I only II only III only II and III only 1, II, and III
Solution
Answer: E
All three methods can be used to swap the two integers from client proogram.
