Skip to content

Instantly share code, notes, and snippets.

@arrbxr
Created March 24, 2018 03:27
Show Gist options
  • Select an option

  • Save arrbxr/ccb97b215d64ea5e1271d898ac1586d4 to your computer and use it in GitHub Desktop.

Select an option

Save arrbxr/ccb97b215d64ea5e1271d898ac1586d4 to your computer and use it in GitHub Desktop.
Static instance constructor varible created by arrbxr - https://repl.it/@arrbxr/Static-instance-constructor-varible
class Main {
public static void main(String[] args) {
Test t = new Test();
Test t1 = new Test();
}
}
class Test{
Test(){
System.out.println("Constructor");
}
{
System.out.println("Instance");
}
static{
System.out.println("static");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment