There are three reason,for this java.io.FileNotFoundException to be thrown at run-time and the reasons are follows: Reason1: "If the given file is not available in the specified location then this error will occur". As you see,this is the most obvious reason for this exception as indicated by the Exception itself. Example: import java.io.*; public class Example1{ public static void main(String[] args){ FileReader reader = new FileReader("c:/javaInterviewExam.txt"); BufferedReader br = new BufferedReader(reader); String strcontent =null; while ((strcontent = br.readLine()) != null){ System.out.println(strcontent); } br.close(); } } In the above code during the execution of the line BufferedReader br=new BufferedReader(reader); if the file exam.txt is not found in the given location then the following error message will appear. Error message: java.io.FileNotFoundException: c:\ javaInterviewExam .txt (The system can
In this blog I'll demonstrate how to implement few very basic application functionalities in Eclipse RCP.