Java IO: Serializable

Connect with me:  
  Jenkov.com - News

The Serializable interface is a marker interface your classes must implement if they are to be serialized / deserialized, like shown the examples with ObjectInputStream and ObjectOutputStream.

Object serialization is kind of a topic in its own right. This Java IO tutorial is mostly focused on the streams and readers / writers. Therefore I will not get into deeper detail about object serialization at this point. In addition,a lot has already been written online about Java object serialization. Instead of repeating it, I'll give you a few links to deeper explanations of the subject. Here are a few:

http://java.sun.com/developer/technicalArticles/Programming/serialization/
http://java.sun.com/j2se/1.4.2/docs/guide/serialization/index.html
Connect with me:
     
Newsletter - Get all my free tips!