The Way of the Java Constant

Tom Henricksen
DataDrivenInvestor
Published in
2 min readApr 7, 2020

--

Java constants can help you create more readable code. Instead of putting 5% throughout your code, we can create a constant variable called SALES_TAX. In other words, when it goes up you can change the Java constant in one spot!

Java Constant

As you create new applications you will run into something that should not change. Like the aforementioned SALES_TAX, you don’t want…

--

--