Java serializable interface
January 27, 2008 2 Comments
I was trying to understand the concept behind the java serialization.
I know java serialization is required when you want to save state of an object outside JVM. My thinking was why don’t Sun make all classes as Serializable by default? Why Serializable interface required to persist an object?