Skip to content

Instantly share code, notes, and snippets.

@codiodes codiodes/StaticBlock.java
Last active Dec 7, 2017

Embed
What would you like to do?
Static Block in Java
class MyClass {
static {
System.out.println("Static Blocks in Java by Codiodes");
System.exit(0);
}
public static void main(String[] args) {
// Initialization
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.