public class Program { public static void main(String [] args) { try { int arr[]= new int [5]; System.out.println(arr[7]); } catch (Exception e) { System.out.println("An error has occured"); } }}