What is Static Initializer Code
: A class can have a block of initializer code that is simply surrounded by curly braces and labeled as static e.g. Code: public class Demo{ static int =10; static{ System.out.println(�Hello world�); } } And this code is executed exactly once at the time of class load In Java, a static initializer block is a … Read more