initializer in Java

n Java, an initializer is a block of code that has no associated name or data type and is placed outside of any method, constructor, or another block of code. Java offers two types of initializers, static and instance initializers.
* The static initializer runs when the class is fi rst used. 
* Fields and instance initializer blocks are run in the order in which they appear in the file.
* The constructor runs after all fields and instance initializer blocks have run