class F { public static void main(String[] args){ try { int a=10,b=0,c; c=a/b; System.out.println(c); } catch(Exception a) { System.out.println("error found "); } try { int a[] ={10,20,30}; System.out.println(a[3]); } catch(ArrayIndexOutOfBoundsException b) { System.out.println("error found "); } } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter