static keyword in java
// example on static block in java. public class StaticBlockExample { // static variable static int a = 10; static int b; // static block static { System.out.println("Static block called."); b = a * 5; } public static void main(String[] args) { System.out.println("In main method"); System.out.println("Value of a : " + a); System.out.println("Value of b : " + b); } }