Static Block in JavaStatic block is the group of statements that gets executed only once when the class is loaded into the memory by Java ClassLoader.Syntax of the static block is static { // Logics here or group of statement
Read this post on scientecheasy.com