static variables are not serialized with the object. However, serialVersionUID is a must in the serialization process. When an object is serialized, the serialVersionUID is serialized along with the other contents. This is one exception to the general serialization rule that, “static fields are not serialized”.
You might also like: