Why static block executes before the main() ?
Welcome to the Java Shorts Series.
In this article, we will understand what is static block and why it executes before the main() method.
What is a static block in Java?
When we create a block with a static keyword, that is called a static block. It ...
riteshpanigrahi.hashnode.dev2 min read