How to not allow serialization of attributes of a class in Java?

Re: How to not allow serialization of attributes of a class in Java?

by Ashutosh Bhatt -
Number of replies: 2
There is no direct way to prevent sub-class from serialization in java. One possible way by which a programmer can achieve this is by implementing the writeObject() and readObject() methods in the subclass and needs to throw NotSerializableException from these methods.
In reply to Ashutosh Bhatt

Re: How to not allow serialization of attributes of a class in Java?

by Roman Burton -
I use basically superior fabrics : you will discover these products by: Roofing Contractors
In reply to Roman Burton

Re: How to not allow serialization of attributes of a class in Java?

by Roman Burton -
I also wrote an article on a similar subject will find it at write what you think. iptv nordic