Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- class RemoteException extends IOException
- {
- }
- class Foo{
- public void ex() throws IOException{
- throw new RemoteException();
- }
- }
- class Main {
- public static void main (String[] args){
- try{
- new Foo().ex();
- }
- catch(RemoteException rex){
- System.out.println("yes");
- }
- catch(Exception ioe){
- System.out.println("no");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement