Java: static and final keywords

Photo by Joshua Woroniecki on Unsplash

Static and final keywords in Java are at the core of the language and it is important to have an in-depth understanding of their function.

static variables

If you’ve every written a Java program of any scale, you’ve come across the “static” keyword. Your first program probably looked something like this: