Can I add fields to serialized object's class?
<p>I have a employee class:</p>

<pre><code>class Employee implements Serializable{
    int empId;
    String empName;
    double salary;
}
</code></pre>

<p>One object of this employee class is serialized and stored in some file say employee.ser</p>

<p>I want to add one more field in the existing employee class. Now my employee class will be something like this</p>

<pre><code>class Employee implements Serializable{
    int empId;
    String empName;
    double salary;
    String state="abc";
}
</code></pre>

<p>Is it possible to deserialize the old object, such that it will have default value for the state?</p>

<p>If it is possible, then how?</p>