Question d’entretien chez IBM

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