| Author |
Disadvantgaes of serialization
|
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
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.
|
Groovy
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56204
|
|
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
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Disadvantgaes of serialization
|
|
|