+ 1
Can someone explain to me what static means please?
2 ответов
+ 2
The static keyword in java is used for memory management mainly. We can apply java static keyword with variables, methods, blocks and nested class. The static keyword belongs to the class than instance of the class.
The static can be:
- variable (also known as class variable)
- method (also known as class method)
- block
- nested class
- 3
the value which is fix for the particular variable i.e the static variable for e.g. static int x=5; so the value of x is fixed i.e, 5 it cannot be change