I'm new to java and the book surprisingly started using this without explaining it even once. Why does stack overflow want me to write even more than I actually need?
static means that instead of each instance of the class having that variable, the variable belongs to the class as a whole.
final means that the values are constant and cannot be changed.
Basically what this means is that it's an integer that is constant for all instances of a certain class at all times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With