Programming language supportEdit
In the .NET Framework, classes can be serialized and deserialized by marking it with the
System.Serializable attribute. Fields of a serializable class can be excluded from serialization by marking it with the
System.NonSerialized attribute. A field can be missing from a serialization stream when it is marked with the
System.Runtime.Serialization.OptionalField attribute. Objects may be serialized and deserialized using binary, SOAP, or XML.
Java provides automatic serialization for class marked with the
java.io.Serializable interface. The
java.io.Externalizable interface allows overriding of the serialization process.