State refers to the collective values of an object's variables.
Persistence refers to an object being saved outside of the Java program, so that it doesn't vanish when the program is finished. This is achieved by
serializing an object, and the state of the serialized object is its "persistent state."
(Note that variables modified with the keyword "transient" are not stored to an object's persistent state.)
See the API for the Serializable interface (in java.io)...
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html Also see "Object Serialization" in the
Java Tutorial...
http://java.sun.com/docs/books/tutorial/essential/io/serialization.html See especially the topic on "Providing Object Serialization for Your Classes," which discusses how to customize serialization (and thus an object's persistent state)...
http://java.sun.com/docs/books/tutorial/essential/io/providing.html [ September 23, 2004: Message edited by: marc weber ]