Java Static keyword

Static is a keyword in Java used to represent the class members. It can be used with variables, methods, initializer blocks, and nested classes. Types of class members: Static data members. Static initializer block. Static method. Static nested class. 1. Static data members: Data members declared with static keywords are known as static data members. … Read more