Questions tagged [notserializableexception]

Exception thrown when an instance is required to have a Serializable interface.

In Java, NotSerializableException class which extends ObjectStreamException class is responsible for notserializableexception. Thrown when an instance is required to have a Serializable interface. The serialization runtime or the class of the instance can throw this exception. The argument should be the name of the class.

121 questions
-4
votes
1 answer

Does child class serialize parent class' members that aren't serializable?

If class B extends class A, class B implements Serializable, and class A has a public static initialized variable that is not serializable... trying to write a class' B object with writeObject() method of FileOutputStream, will serialize the…
1 2 3
8
9