Static keyword in Java

The static keyword can be used with class, variable, method and block. Static members belong to the class instead of a specific instance, this means if you make a member static, you can access it without an object. Static Block A static block is used for initializing the static variables. Read more…