File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Disadvantgaes of serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Disadvantgaes of serialization" Watch "Disadvantgaes of serialization" New topic
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
    
  13

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]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Disadvantgaes of serialization
 
Similar Threads
Object serialization
Object Serialization or RMI?
Serialization help
can somebody explain this?
what is meant by saving an object's state to a sequence of bytes