javafx- difference between URI and absolutepath for a file
<p>I wanted to use an absolute path for Image URL in javafx . <a href="https://stackoverflow.com/questions/37521378/how-to-create-a-javafx-image-from-an-absolute-path">this</a>  gives me a way to do that . </p>

<pre><code>File file = new File(System.getProperty ("user.dir")+ "\\profile" + "\\chat3.png");
    System.out.println(file);
    System.out.println(file.toURI().toURL().toExternalForm());
</code></pre>

<p>These codes generate the following output:</p>

<blockquote>
  <p>C:\Users\myUsername\Downloads\Compressed\15Dec\profile\chat3.png
  file:/C:/Users/myUsername/Downloads/Compressed/15Dec/profile/chat3.png</p>
</blockquote>

<p>what is the difference between these two lines?</p>