import java.io.IOException; public class PR394 { public static void foo() { throw new InternalError("poo"); } public static void bar() throws IOException { throw new IOException(); } public static void main(String single [] single args) { try { bar(); } catch (IOException exn) { System.out.println("bar caught on P#" + Ti.thisProc()); } try { foo(); } catch (InternalError exn) { System.out.println("foo caught on P#" + Ti.thisProc()); } } }