title: What's the difference between url.getFile() and getpath()?
body: <p>In <code>java.net.url</code> there is a <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html#getFile%28%29" rel="noreferrer"><code>getFile()</code></a> method and a <a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html#getPath%28%29" rel="noreferrer"><code>getPath()</code></a> method.  </p>
  
  <p>In my testing, they both return the same result: the full path and file after the domain name trailing slash.  </p>
  
  <p>For instance, <code>http://www.google.com/x/y/z.html</code> returns <code>x/y/z.html</code> for both methods.</p>
  
  <p>Could someone elaborate on the Javadocs?</p>