Apart from methods and constructors, Initialization Blocks are the third place in a Java Program where operations can be performed. Initialization Blocks come in two flavours: Static Initialization Blocks: Runs first when the class is first loaded. Declared by using… Read More ›
instance
Initialisation Blocks in Java
Topic: Initialisation Blocks in Java Apart from methods and constructors, initialisation blocks are the places where operations within a class can be performed. Initialisations blocks can be: Static Instance