title: Efficient way to convert long to String in Java
body: <p>I've been using</p>
  
  <pre><code>long a = 123456789;
  String b = a+"";
  </code></pre>
  
  <p>to convert a <code>long</code> value (or <code>int</code>) to <code>String</code>, or in this perspective, treat it as String. My question is, is it ok to do this? Are there any negative impact?</p>
  
  <p>And is there any difference in using <code>String.valueOf()</code> vs <code>Long.toString()</code>?</p>
  
  <p>Thanks</p>