Hi all, Can anyone tell me the disavantages of serialization. Does implementing the Serializable interface mean that the object consumes more memory even though I do not save the object to the disk or pass it across the network.
By implementing Serializable your objects will not consume more memory than if the class did not. The implementation of the interface merely declares that you have defined the object to be serializable. The book Effective Java has an excellent section on creating objects that behave well when they declare that they follow the Serializable contract. hth, bear