title: Java assertion error does not throw error
body: <p>Why doesn't my assert statement yield any result?
  I think the first assert statement should fail, but I don't see anything being displayed on Eclipse.</p>
  
  <p>I'm using Eclipse to run this program.</p>
  
  <pre><code>package java.first;
  
  public class test {
    public static void main(String[] args) throws Exception {
      String s = "test1";
      assert (s == "test");
      s = "test";
      assert (s == "test");
    }
  } 
  </code></pre>