Static Keyword in Java
static keyword is mainly used for memory management. We can be use with .
1) Static Variable in Java
→ When a variable is declared as static, it is called static variable.
→ static variable refer to the common property of all objects.
→ static variable gets memory only once in the class area at the time of class loading.
Example 2: Change the course.
2) static method in Java
Example : Change the course.
3) Static block in Java