title: Java File Path Best Practice
body: <p>If operating system is Windows, which one given below is a best approach of coding in Java?</p>
  
  <p>1) <pre><code> String f = "some\\path\\file.ext"; </code></pre> 
  2) <pre><code> String f = "some/path/file.ext"; </code></pre> 
  3)  <pre><code>  String f = "some"+File.separator+"path"+File.separator+"file.ext"; </code></pre> 
  4) <pre><code> String f = new StringBuilder("some").append(File.separator).append("path").append(File.separator).append("file.ext").toString(); </code></pre></p>