title: Is it better approach to declare and initialize a bigdecimal number with "new" keyword or static method?
body: <p>I have to declare and initialize BigDecimal wrapper object several times in project. Then which is better approach either by java Code:</p>
  
  <pre><code>BigDecimal num=new BigDecimal("123"); 
  </code></pre>
  
  <p>or in <code>NumberUtils</code> class there is already a static method available as</p>
  
  <pre><code>public static BigInteger createBigInteger(String str) {
      if (str == null) {
          return null;
      }
      return new BigInteger(str);
  }
  
  BigDecimal num=NumberUtils.createBigInteger("123"); 
  </code></pre>
  
  <p>Plese tell me, which is better approach as we compared performance wise(memory and speed).</p>