SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class ExceptionTest {
  2.  
  3.     public static void main(String[] args) throws Exception
  4.     {
  5.         try
  6.         {
  7.             throw new IllegalAccessException();
  8.  
  9.         }
  10.         catch (Exception e)
  11.         {
  12.             Class test = e.getClass();
  13.             System.out.println(test.isInstance(e));
  14.             throw e;
  15.         }
  16.  
  17.     }
  18. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top