title: Absolute path with string variable
body: <p>PLEASE help me to understand what is going on here:</p>
  
  <p><strong>my code:</strong></p>
  
  <pre><code>import java.io.File;
  
  public class Main {
  
      public static void main(String[] args) {
          String name = "‪d:\\downloads\\testfile.mp3";
  
          File file1 = new File(name);
          System.out.println(file1.getAbsolutePath());
  
          File file = new File("d:\\downloads\\testfile.mp3");        
          System.out.println(file.getAbsolutePath());
      }
  }
  </code></pre>
  
  <p><strong>The output</strong>:</p>
  
  <pre><code>J:\Louw\Programming\PathTest\‪d:\downloads\testfile.mp3
  d:\downloads\testfile.mp3
  </code></pre>
  
  <p><strong>Question:</strong>
  Why would the <code>String</code> variable produce a different Absolutepath than typing the string directly with new File object? (Obviously the first output also throws a "FileNotFound" exception if trying to use later). </p>
  
  <p>my Eclipse java development environment is:</p>
  
  <p>Eclipse Java EE IDE for Web Developers.</p>
  
  <p>Version: Neon.2 Release (4.6.2)
  Build id: 20161208-0600</p>
  
  <p>Please assist.</p>