2 Replies Latest reply: Dec 7, 2009 6:43 PM by 796283 RSS

    "Cascading" Serialization / Object writing

    796283
      I skimmed over the relavent area of the Serialization specification (or what I thought to be relavent) and I couldn't find out if Serialization / object writing "cascades" (I only saw it mention this concept with respect to super/subclassing).

      For Example:
      Say I have an object X which has an ArrayList or Hashtable containing multiple object Y, and each object Y has another ArrayList / Hashtable containing object Z...

      Question:
      If I call and writeObject on object X, will it write the full contents (in general) of each object Y, and subsequently each object Z (assuming X, Y, and Z all implement Serializable)?