String object instances
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1896145/basic-java-question-string-equality">Basic Java question: String equality</a>  </p>
</blockquote>



<p>Given</p>

<pre><code>String s= "God";
String k= "God";
</code></pre>

<p>Will both <code>s</code> and <code>k</code> be considered to be referring to the same <code>String</code> object? Is there a single instance of <code>String</code> object?</p>
