Java == for String objects ceased to work?
<pre><code>  public class Comparison {
        public static void main(String[] args) {
            String s = "prova";
            String s2 = "prova";
            System.out.println(s == s2);
            System.out.println(s.equals(s2));
        }
    }
</code></pre>

<p>outputs:</p>

<pre><code>true
true
</code></pre>

<p>on my machine. Why? Shouldn't be == compare object references equality?</p>
