IBM Interview Question

Swap 2 elements in an array. Try-catch in Java.