title: BigDecimal - to use new or valueOf
body: <p>I came across two ways of getting BigDecimal object out of a double d.</p>
  <ol>
  <li><code>new BigDecimal(d)</code></li>
  <li><code>BigDecimal.valueOf(d)</code></li>
  </ol>
  <p>Which would be a better approach? Would <code>valueOf</code> create a new object?</p>
  <p>In general (not just BigDecimal), what is recommended - new or valueOf?</p>