title: Java FileOutputStream Default Creation Path
body: <p>Let's say I have below code:</p>
  
  <pre><code>String fileName = "name.txt";
  FileOutputStream fileOut = new FileOutputStream(fileName);
  wb.write(fileOut);
  </code></pre>
  
  <p>This way, the file will be created under bin folder of the project. </p>
  
  <p>However, if I specific fileName at a whole path:</p>
  
  <pre><code>String fileName = "c:/temp/name.txt";
  </code></pre>
  
  <p>this file will be created at c:\temp folder.</p>
  
  <p>Am Correct? And Why this happen, how FileOutputStream work?</p>