All About Class EOFException in Java

EOFException is thrown from an application indicating that an end of file has been reached unexpectedly during input.This exception is mainly used by DataInputStream classe. This class expects a binary file in a specified format and for which the end of stream is an unusual condition.Most other input Streams return a special value on end of Streams.
The structure of the class EOFException is given as:


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

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

No comments:

Powered by Blogger.