Reputation: 389
From what I understand, the object state is just stored (values for fields, etc.), however, the execution context is anyways going to be lost.
What's the point of this? What bad can happen if so?
Note* this was taken from Effective Java By Joshua Bloch
Upvotes: 0
Views: 103
Reputation: 718826
The execution context of a Thread consists of
Since none of this information can be saved by serialization, the serialized Thread is useless.
Upvotes: 1