There is a java class in our code which implements Serializable.It already has a serialVersionUUId defined in the class. Apart from that we also have another
static final String sVersion which is an integer.This class implements the readObject and writeObject api . In the readObject API it populates all the member variables using the InputStream and in the writeObject API , it gets an OutputStream and calls the writeObject method .
Now i need to add an array of booleans as a property for this class. Should i change the serialVersionUUID? What is the effect that would happen if i change/not change the version id? what is the best practice?Im trying to get into Effective java by joshua bloch , but need a quick easy to digest answer for this.
Thanks