Basic HTML version of Foils prepared Aug 14 1997

Foil 12 Object Serialization

From JavaBeans Examples UC Web applications Certificate -- Aug 11,14 97. by Nancy McCracken


Beans must implement java.io.Serializable if they are to be saved, or used as components in other beans that are saved.
There are no methods to provide - implementing Serializable is a promise that all member data of the class can be successfully saved and restored used the serialization mechanism.
Static and transient members are not saved.
Any class that would present a security risk can't be serializable, for example a FileInputStream can't be saved because it contains a file handle.
In the BeanBox, use the Save and Load functions under the File menu.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998