If your intention is to save the state of the object and read it again then serialization is the best way to do it. Save it using serialization and read it back by de-serializing