Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement