@@ -0,0 +1,599 @@
+//Here a Exception class is a Super class and ArithmeticException is a Sub classs%0A//Now the exception is caugth by superclass and the code of subclass will never execute%0A//This is An error in java%0A%0Aclass SuperSubCatchDemo %7B%0A public static void main(String args%5B%5D) %7B%0A %09try %7B%0A %09%09int a = 0;%0A %09%09int b = 42 / a;%0A %09%7D%0A %09catch(Exception e) %7B%0A %09%09System.out.println(%22Generic Exception catch.%22);%0A %09%7D%0A %09/* This catch is never reached because%0A %09ArithmeticException is a subclass of Exception. */%0A %09catch(ArithmeticException e) %7B // ERROR %E2%80%93 unreachable%0A %09%09System.out.println(%22This is never reached.%22);%0A %09%09%7D%0A %09%7D%0A%7D%0A

Create SuperSubCatchDemo.java