What happens if I serialize a Map(or List) with a java version, and I try to deserialize it with other java version, where the serialVersionUID changed? I suppose it will fail.
If you create a lib for others to use what will be the preferred way of serializing objects, using Java Objects like Map, List or using an array of self made objects?
e.g. List<MyObject> or MyObject[]? Map<String, MyObject> or MyObject2[] (MyObject2 contains the key and MyObject)?
serialVersionUIDfield. This won't change simply because people are using different Java versions. Are you confusing these concepts together?