JLS: Item 54 - Why classes having thread pool should not implement serializable?

Posted by Maddy on Stack Overflow See other posts from Stack Overflow or by Maddy
Published on 2010-04-26T05:03:11Z Indexed on 2010/04/26 5:13 UTC
Read the original article Hit count: 308

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about serialization

Related posts about java