 <p>You can put these variables in an interface. That way, you will make these "public static final".</p> <p>Ideally you can even put these into properties file. In that case, these should be config properties of your application which may control a feature or anything that could've been changed from outside(e.g. an url).</p>