title: Java.lang.String.contains() Method with "" String
body: <p>I have writen a code like this:</p>
  
  <pre><code>    String name="";
      String path="hai";
      if(path.contains(name))
      {
          System.out.println("its working"+name.length());
      }
  </code></pre>
  
  <p>Output:
  its working0</p>
  
  <p>I couldn't understand how  the if condition satisfies .please help</p>