title: Java write() function
body: <p>The <code>write()</code> function in java appends new data to end of file. Here is my question; how the java knows end of file?</p>
  
  <ol>
  <li>By reading whole file to find end of file </li>
  <li>It knows where the end of file</li>
  </ol>
  
  <p>Which one? Thanks in advance</p>