Created
December 6, 2013 20:33
-
-
Save rcurtis/7831644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StaticWTF | |
{ | |
{ | |
System.out.println("Before constructor"); | |
} | |
static | |
{ | |
System.out.println("Static before constructor"); | |
} | |
public StaticWTF() | |
{ | |
System.out.println("In constructor"); | |
} | |
public static void main(String[] args) | |
{ | |
System.out.println("Before creating object"); | |
new StaticWTF(); | |
System.out.println("After creating object"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment