Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. class test {
  2.     static {
  3.         fail X = new fail();
  4.     }
  5.  
  6.     public static void fail() {
  7.         fail X;
  8.         System.out.println("Hallo Welt!");
  9.         X = new fail();
  10.     }
  11.  
  12.     public static void main(String[] args) {
  13.         System.out.println("Das hier ist die fail-main!");
  14.     }
  15. }
  16. class fail {
  17.     {
  18.         System.out.println("Mich gibt es nicht!");
  19.         test.fail();
  20.         System.out.println("Dead code ftw!");
  21.     }
  22.  
  23.     static {
  24.         System.out.println("Dolles Programm!");
  25.         test.fail();
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement