All About Class FileNotFoundException in Java

FileNotFoundException is thrown from an application to indicate that a file specified to perform some operation could not be found.
It is caused by an attempt to access a non existent file.

The structure of the class FileNotFoundException is given as:


public class java.io.FileNotFoundException extends java.io.IOException{
//constructor
public FileNotFoundException();
//constructs an empty FileNotFoundException object that is an object with no message specified.
public FileNotFoundException(String message);
//constructs an FileNotFoundException object with the message specified.

}
 
All About Class FileNotFoundException in Java All About Class FileNotFoundException in Java Reviewed by Animesh Chatterjee on September 21, 2018 Rating: 5

No comments:

Powered by Blogger.