Static block in Java
Static block in Java Java programming language offers a block known as static that runs before the execution of the main method. Below is an example to understand its functioning. Later, we see its practical use. Java static block program class StaticBlock { public static void main(String[] args) { System.out.println(“Main method is executed.”); }static…
Read more