java - Reasons for declaring a private static final variable -


why declare static final variable private immutable type?

could possibly harm declare them public on case?

so nobody can access outside , rely on value, giving freedom change without risk of side-effect (at least outside of class it's declared).


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -