title: what is absolute file path in windows machine using java?
body: <p>I am refering file path in two places in my program. In one place, i pass file path in FileInputStream and in another place i pass to Spring getResource() method.</p>
  
  <p>If i give file path in FileInputStream like "<code>file:/C:/myfile</code>" it is throwing error. I had to give <code>C:\\myfile</code>.</p>
  
  <p>But in getResource() method, if i give <code>C:\\myfile</code>  it is throwing error i had to give <code>file:/C:/myfile</code>.</p>
  
  <p>Why this difference? Can you please clarify?</p>