+ 1

Can someone explain to me what static means please?

9th Aug 2016, 5:48 AM
Thanigai Vasan
Thanigai Vasan - avatar
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
13th Aug 2016, 3:39 PM
WPimpong
WPimpong - avatar
- 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
9th Aug 2016, 2:39 PM
Deepak kandpal
Deepak kandpal - avatar