title: How to replace null value of a String in java?
body: <p>I know it's a dumb question but still.</p>
  
  <p>But I want to know is it possible to replace the string which is set to null ?</p>
  
  <pre><code>String str=null;
  
  String str2= str.replace('l','o');
  
  System.out.println(str2);
  </code></pre>
  
  <p>Currently it is giving me <code>NullPointerException</code>.</p>
  
  <p>I want to know is it possible to some how replace the value of String which is set to null ?</p>
  
  <p>If Yes, how ?</p>
  
  <p>Help appreciated.
  Thanks</p>