difference between Java string declaration
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1881922/questions-about-javas-string-pool">Questions about Java&#39;s String pool</a>  </p>
</blockquote>



<p>I am new to java.Can anyone what is the different between the following code for the java String Declaration.</p>

<pre><code>   import java.io.*;
   import java.util.*;

    class Sample1
    {
        public static void main(String args[])throws IOException
            {
                String str="First String";
                String Str1=new String("Second String");
                System.out.println("The variable is "+str);
                System.out.println("The variable is "+Str1);
        }
  }
</code></pre>
