static keyword in java
- 17th Aug 2017
- 0
- 3377
- how to use static keyword in java importance of static keyword in java significance of static keyword in java static keyword in java when to use static keyword in java
The “static” keyword can be applied to an inner class (a class defined within another class), method or field (a member variable of a class). Static methods and variables are shared among all instances of a class. They can be invoked and accessed without creating new instances of the class. Example public class Student{ String […]