@@ -0,0 +1,447 @@
+import java.io.*;%0Aimport java.rmi.*; %0Aclass class1 %0A%7B%0A public void m1() throws RemoteException %0A%7B%0A System.out.println(%22m1 in class1%22); %7D %7D%0A%0A class class2 extends class1 %0A%7B%0A  public void m1() throws IOException %0A%7B  %0A   System.out.println(%22m1 in class2%22);%0A%0A%7D %7D%0A%0Aclass ExceptionTest2 %0A %7B %0Apublic static void main(String args%5B%5D)%0A %7B%0A   class1 obj = new class1();%0A  try%7B %0Aobj.m1(); %0A%7D catch(RemoteException e)%7B System.out.println(%22ioexception%22); %7D%0A%0A%7D %7D%0A

Create InheritanceException.java