Last active
December 7, 2017 14:26
-
-
Save codiodes/b8671aaf299c9778c451a0ded2039f6c to your computer and use it in GitHub Desktop.
Demonstration of Static Block being called before Main method 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
public class StaticBlockBeforeMain { | |
static | |
{ | |
System.out.println("Inside Static Block"); | |
} | |
public static void main(String[] args) { | |
System.out.println("Inside Main Method"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment