I have a class that contains an object of type Object (which is used as a monitor for synchronization). Since Objects are not Serializable, what can I substitute to make serialization work?
I have a class that contains an object of type Object (which is used
Share
I wouldn’t think a field used for synchronization would need to be serialized.
Mark it
transient.