Java: java.io.File class
<p>I started learning about java's I/O part and something seemed a bit weird to me. So, most of the classes in java.io package throw IOException, but for some reason, java.io.File doesn't. Why is it so?</p>

<p>If we do something like this:</p>

<pre><code>File file = new File("theFilePath");
</code></pre>

<p>What if this file doesn't exist? Shouldn't this throw (in this case) FileNotFoundException? I know you can check for something like that through it's methods, like isFile() or exists() (I guess). 
But why doesn't java provide specific exceptions for cases like that, just like for FileReader or similar classes?</p>