public class lab27 { public static void main(String[] args) { try { int arr[]=new int[-6]; } catch(NegativeArraySizeException e) { System.out.println("exception 1;"+e); } finally { System.out.println("the try catch is finished"); } } }
public class lab27 { public static void main(String[] args) { try { int arr[]=new int[-6]; } catch(NegativeArraySizeException e) { System.out.println("exception 1;"+e); } finally { System.out.println("the try catch is finished"); } } }