Must Know Rules of Static Blocks, Methods and Variables
First the meaning of static,
Whether it is used with a variable or a method static keyword is of the whole class. It does not belong to objects of the class.
Now rules,
Firstly, static blocks are executed then the public static void main(String... ...
preetikaprakash.hashnode.dev1 min read