title: What kind of global variable is bad practice in java?
body: <p>For many of my java projects, I use database extensively, what I usually do is to have a <code>property.xml</code> file to hold all my strings and settings. </p>
  
  <p>And then I would have a class <code>CNST</code> to hold all the static constants corresponding to those in the xml file.</p>
  
  <p>Those constants are initialized by the xml file once when the program starts, and used as globals anywhere later on in the program.</p>
  
  <p>However, after reading many articles these days, it seems that using globals at all is not such a good practice. So please can anyone may indicate a good practice fo this situation? Thanks.</p>