When you implement the java.io.Serializable interface to create a serializable class, the compiler searches for a static final field called "serialVersionUID" of type long. If the class has not specified this field explicitly, then the compiler will create one such field and assign it a value that leaves the implementation-dependent serialVersionUID calculation. This calculation depends on various aspects of the class, and it follows the specifications for object serialization given by Sun. But, in all compiler implementations the same value is not guaranteed.
, - . Serialization , serialVersionUID ( ) (, , , - ) . serialVersionUID, , , InvalidClassException.
NOTE--
long "serialVersionUID" , Serializable, , . , , , InvalidClassException , .
'private' , , , . , - , 'private'.