Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class test {
- static {
- fail X = new fail();
- }
- public static void fail() {
- fail X;
- System.out.println("Hallo Welt!");
- X = new fail();
- }
- public static void main(String[] args) {
- System.out.println("Das hier ist die fail-main!");
- }
- }
- class fail {
- {
- System.out.println("Mich gibt es nicht!");
- test.fail();
- System.out.println("Dead code ftw!");
- }
- static {
- System.out.println("Dolles Programm!");
- test.fail();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement