File.separator vs FileSystem.getSeparator() vs System.getProperties("file.separator")
<p>Why are there three different ways to get the file-separator in Java?</p>

<p>How do we decide which to use?</p>

<ul>
<li><a href="http://download.oracle.com/javase/1,5,0/docs/api/java/io/File.html#separator" rel="nofollow"><code>java.io.File.separator</code></a></li>
<li><a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/FileSystem.html#getSeparator%28%29" rel="nofollow"><code>java.nio.file.FileSystems.getDefault().getSeparator();</code></a></li>
<li><a href="http://download.oracle.com/javase/1.4.2/docs/api/java/lang/System.html#getProperties%28%29" rel="nofollow"><code>System.getProperties("file.separator")</code></a></li>
</ul>
