I have figured out how to serialize and deserialize a single object including a collection of similar objects. However, I'm unable to serialize/deserialize multiple dissimilar objects. I thought about adding all the objects to a generic collection but that failed with compiler warnings and stack traces.
For starters, what is the best way for someone learning about making Java objects persistent, to make dissimilar objects persistent? (Looking for an explanation of theory in English).
Second, can someone direct me to a code example dissimilar objects are persistent? All I've been able to find are examples of saving a single object which included a collection of similar objects. As I said, I don't need help with that. I can do that.