Skip to content

Instantly share code, notes, and snippets.

@davidpaniz
Last active August 29, 2015 14:11
Show Gist options
  • Save davidpaniz/d12f19a527abd82913fa to your computer and use it in GitHub Desktop.
Save davidpaniz/d12f19a527abd82913fa to your computer and use it in GitHub Desktop.
class test {
{ System.out.println("one"); }
static { System.out.println("static one"); }
public static void main(String[] args)
{ new test().run(); new test().run(); }
private test(){
{ System.out.println("two"); }}
{ System.out.println("three"); }
static {
System.out.println("static two");
}
public void run()
{ System.out.println("hmm...");
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment