Last active
December 7, 2017 13:31
-
-
Save codiodes/9153b98dead5157149ea10e5a35c6406 to your computer and use it in GitHub Desktop.
Static Block in Java
This file contains 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
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