static block in Java
Unlike C++, Java supports a special block, called a static block that can be used for static initialization of a class. This code inside the static block is executed only once: the first time the class is loaded into memory. ``` class Main { static{} public static void main(String[] args) { Main c = new Main(); new Main(); } } ```