All About NotActiveException in Java



an application can throw NotActiveException if it invokes a method either the method never invoked in right time or the method is invoked at a wrong context.
If an ObjectInputStream or ObjectOutputStream is not currently active,the operations on one of these could not be performed.
NotActiveException is a subclass of ObjectStreamException.
The structure of NotActiveException class is given as:

public class java.io.NotActiveException extends java.io.ObjectStreamException{
//constructors:
public NotActiveException();//default constructor
public NotActiveException(String message);
}
 
All About NotActiveException in Java All About NotActiveException in Java Reviewed by Animesh Chatterjee on December 10, 2018 Rating: 5

No comments:

Powered by Blogger.