Monday, February 27, 2006 07:10 AM
Serialization is to make your Objects persistant.persistant means long live.
I will give u a simple example where this will be used.Take a client server architecture where u will have a session which is stateful object at serverside.
and you are maintaining some state in that.And after somne time u are idle for 10 - 20 mins.in mean while holding your object is meaning less for the server as you are idle and not working for long period of the time so it will serialize ur stateful session object some where in server and continue with the other works.
And when ever u give ur next request after some time it will deserialize that and will maintain the same state where u left.
Think if serialization is not done what happenes to your state after you came back you will loose the data.
hope u understood well and see this link for more idea