Why am I getting java.io.FileNotFoundException in this program?
<p>Why am I getting java.io.FileNotFoundException in the following program?</p>

<pre><code>import java.io.*;

class FisDemo {

    public static void main(String[] args)throws IOException{

        FileInputStream fis=new FileInputStream("abc.txt");
/* Here we are accessing file abc.txt statically. i.e abc.txt must exist in current class directory */

        int  data;

        while(( data=fis.read())!=-1){
            System.out.println((char)data);
      // here we are casting, because return type of read() is int
        }
    }
}
</code></pre>
