The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

serialization

Posted by tejinder singh on May 12, 2001 at 1:44 PM

hi senthil
Serializable interface is just a flag to indicate that the object you want to serialize has the permission to be done.if we do not want any object state to not to be saved to any storage space than for that object we may not implement serializable interface.
the use of serialization lies in saving and restoring the state of an object .the primitive type variables do not require this as they are independent values and are saved as blocks of data.however an object is not an independent identity and is dependent upon other variables and may be other objects for its creation .hence saving an object requires the saving of all the objects and variables that it depends upon which to much extent is done by the system i.e java.if you have any further doubt do write.
tejinder




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us