title: How is File(".").getAbsolutePath() resolved under the hood?
body: <p>I was wondering:</p>
  <ol>
  <li><p>What happens after I ask for an absolute path of the current file in Java?</p>
  <pre><code>String s = File(&quot;.&quot;).getAbsolutePath();
  </code></pre>
  </li>
  <li><p>How does an interpreter find the path to the current file in the filesystem? Is there some OS system call for this?</p>
  </li>
  <li><p>Does it return the path of a jar? Or sometimes it can return the path where the file was before compilation?</p>
  </li>
  </ol>