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 advantage of serialization over i/o classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "advantage of serialization over i/o classes" Watch "advantage of serialization over i/o classes" New topic
Author

advantage of serialization over i/o classes

Ritesh raushan
Ranch Hand

Joined: Aug 29, 2012
Posts: 100
what's the problem in i/o classes to save the state of object.what's the advantage of Serialization over i/o classes.

Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

I don't understand the question. Serialization uses I/O classes. Why do you think there's a problem or an advantage or a "one vs. the other" situation?
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

serialization performs deep copy by default. if you wish to go with your own then you need to take care all of this.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37940
    
  22
But serialisation can impose a severe performance overhead on copying objects.
You ought not to think about serialisation versus I/O. Serialisation is one way to make an object suitable for I/O.
 
Consider Paul's rocket mass heater.
 
subject: advantage of serialization over i/o classes
 
Similar Threads
Difference between Externalizable and Serializable
what can we read in IO section ...
example answer to Developer's exam
Test Results--What is the "API Contents" Section?
Serialization !!!!!!!!!!!!! Help me out