title: What is the best way of reading configuration parameters from configuration file in Java?
body: <p>Let us assume up to runtime we do not know what are the details of configuration(may user need to configure these parameters in <code>config</code> file before running the application.</p>
  
  <p>I want to read those configuration details and need to reuse them wherever I need them in my application. For that I want to make them as global constants(<code>public static final</code>).</p>
  
  <p>So, My doubt is, is there any performance implications if I read from <code>config</code> file directly from the required class? since,runtime values I can not directly put in separate <code>Interface</code>. </p>
  
  <p>I am thinking it will impact performance.Please suggest me any better way to do this.</p>
  
  <p><strong>UPDATE:</strong> Can I use separate final class for configuration details?
  putting all configuration details as constants in a separate <code>public final class</code> <br/>
  (To read all configuration details at once from the configuration file and storing them as global constants for later use in application)</p>