Chris Rathman / Chris.Rathman@tx.rr.com

package Test.Chris;
import java.io.*;

/************************************************************************
 *                                                                      *
 * Serializable Interface:                                    (java.io) *
 *                                                                      *
 ************************************************************************/
public class Java_io_Serializable implements Serializable {
   String a = "var";
   transient String b = "transient";    // transient prevents writing the data member to the stream

   /*
   *  Serializable interface allows objects to be stored/retrieved using ObjectOutputStream/ObjectInputStream
   *
   *     - class must be declared as public
   *     - class must implement Serializable interface
   *     - class must have a default constructor
   *     - all data members must be primitive, serializable objects or declared transient
   *
   */
   Java_io_Serializable() {
   }
}


Chris Rathman / Chris.Rathman@tx.rr.com