@@ -0,0 +1,425 @@
+// Throws Demo%0A//it allows you to specify what type of exception a method can throw%0Aclass ThrowsDemo %7B%0A static void throwOne() throws IllegalAccessException,ArithmeticException %7B%0A %09%09System.out.println(%22Inside throwOne.%22);%0A %09%09throw new IllegalAccessException(%22demo%22);%0A %09%7D%0A public static void main(String args%5B%5D) %7B%0A %09try %7B%0A %09%09throwOne();%0A %09%7D catch (IllegalAccessException e) %7B%0A %09%09%09System.out.println(%22Caught %22 + e);%0A %09%09%7D%0A %09%7D%0A%7D%0A

Create ThrowDemo.java