Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1.     private static void run() throws FileNotFoundException {
  2.         unsuspiciousMethodInvocation();
  3.         throw new FileNotFoundException();
  4.     }
  5.  
  6.     public static void main(String[] args) {
  7.         try {
  8.             run();
  9.         } catch (IOException e) {
  10.             System.out.println(e instanceof FileNotFoundException);
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement