title: File.separator vs FileSystem.getSeparator() vs System.getProperty("file.separator")?
body: <p>There seems to be three <em>identical</em> ways to get the platform-dependent "file separator" platform-independently:</p>
  
  <ul>
  <li><p><a href="http://download.oracle.com/javase/1,5,0/docs/api/java/io/File.html#separator"><code>java.io.File.separator</code></a></p></li>
  <li><p><a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/FileSystem.html#getSeparator%28%29"><code>java.nio.file.FileSystems.getDefault().getSeparator();</code></a></p></li>
  <li><p><a href="http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html"><code>System.getProperty("file.separator")</code></a></p></li>
  </ul>
  
  <p>How do we decide when to use which?</p>
  
  <p>Is there even any difference between them?</p>