title: Which is best way to create String in java
body: <p>There are two ways to create string in java as below:</p>
  
  <ol>
  <li>String s = new String("Hellow");</li>
  <li>String s1 = "Hellow";</li>
  </ol>
  
  <p>In case 1, there are two objects(one in String constant pool and another one in Heap memory) which will be created while in case 2, only one object will be created in String constant pool only.</p>
  
  <p>As per my understanding, whenever we are creating object using new keyword one object is also getting created in string constant pool. So why to create a string using new keyword, instead we should always create via string literal.</p>
  
  <p>So could you guys please let me know if my understanding is right or wrong. And if it is wrong, please provide the scenario where it is must to create the string using "new".</p>