• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

advantage of serialization over i/o classes

 
Ritesh raushan
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49823
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic