This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
The point of serialization is to save the state of an object, that is, an instance of the class. Static fields do not belong to any instance of the class, they refer to the class itself, so saving and then reloading them for every given object would be no sense anyway.
Originally posted by Thirugnanam Saravanan: After deserialization if i want to retain the value of Static Fields, what should we do?
You should search for a tutorial on handling serialization requests manually.
In short, you must implement the methods, writeObject and readObject. After writing the objects to the stream, you can simply write your static fields to the stream. While reading, read the object first and then the static variables and initialize them as such, assuming that your static variables can be initialized at runtime. For reference, code snippet.