1) Why static block? Java static blocks are used to initialize the static variables. The static block code is loaded when Java Virtual Machine(JVM) loads
1) Why static block? Java static blocks are used to initialize the static variables. The static block code is loaded when Java Virtual Machine(JVM) loads