Why can't I avoid this if I want all the objects in my application to be serialized?
Just because Java serialization works this way.
Note that serializing all objects does not make sense.
Threadinstances and instances of most classes Streaminclude a critical state that simply cannot be serialized.- , .
- , .
- , .
, -, ? ? : , , Serializable.