Welcome to the Treehouse Community
Looking to learn something new?
"public static final int MAX_MISSES = 7;" static??
I dont understand what sir is saying about this: "public static final int MAX_MISSES = 7;"
why static? what is that for??
Geovanie Alvarez21,500 Points
Static methods in Java can be called without creating an object of class.
Tyler Combs15,525 Points
It's necessary to declare the constant static because we want the system to know that it won't ever vary when being called by other classes... right? In other words, I believe final means the value can never be <i>changed</i>, but static means it could also never be displayed as anything else?