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 ›
static
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
Inner Classes
Inner Classes are the classes which are declared inside an outer class i.e classes nesting with in outer class. They can be either static or non static. Static Inner classes are also called as Nested Classes. Inner classes come in… Read More ›
Local and Anonymous Inner Classes
Inner Classes are the classes which are declared inside an outer class i.e classes nesting with in outer class. They can be either static or non static. Static Inner classes are also called as Nested Classes. Inner classes come in… Read More ›