Question: what is the difference between static and init block in java?
Answer: What is difference between static and init block in java. The static block is only loaded when the class object is created by the JVM for the 1st time whereas init {} block is loaded every time class object is created. Also first the static block is loaded then the init block.