title: Best way to provide static (default) values
body: <p>What is the best way to provide static (final) values that my program can access as default values? What is most efficient, or best practice?
  I'm using plain old Java with AWT/Swing.</p>
  
  <p>I could imagine for example writing a class <code>Default</code> that only contains public constants that can then be accessed. Would you call that 'hard-coded'?</p>
  
  <p>Another idea would be to provide the values in a resources file like in Android. But then I would need a mechanism that parses the file at compile time and generates classes for it. Does something like this exist for Java without Android SDK?</p>
  
  <p>I'm interested in best practices and design patterns. Any recommendation on my question is welcome.</p>