Static Block in Java | Example Program & Advantage

0

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


DEEPAK KUMAR GUPTA

blogs from Dhanbad