• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

serialize object

 
abalfazl hossein
Ranch Hand
Posts: 635
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Objects can be serialized to disk on a single machine or can be serialized across a network
such as the Internet, even in a case in which different operating systems are
involved. You can create an object on a Windows machine, serialize it to a Linux
machine, and load it back into the original Windows machine without error


In real world, May you give me one scenario about " create an object on a Windows machine, serialize it to a Linux
machine" ?

The second question:"or can be serialized across a network
such as the Internet,"

When a file is serialized to disk, It is understandable, But How "serialized across a network
such as the Internet"?



 
Thakur Sachin Singh
Ranch Hand
Posts: 242
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
file serialize on network means....file serialize to any machine which attach to network.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Serializing an object means converting it to a stream of bytes that you can later convert back to a Java object (deserializing). You can do anything with that stream of bytes you like: store it in a file on disk, or transmit them across a network, etc.

"Serialize across a network" means: serializing an object (converting it into a stream of bytes) and sending those bytes over a network to another computer (where the bytes can be deserialized back into an object).
 
abalfazl hossein
Ranch Hand
Posts: 635
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firefox and google chrome can restore all web pages after closing.

Do they use serialize?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firefox and Google Chrome are not Java programs. So they certainly do not do serialization the Java way. If you'd want to know how these browsers store information about which tabs are open, you'd have to look in the source code. It could be something like serialization, but it could just as well be something entirely different. Just because some program saves settings, you can't say from the outside, without knowing how the code works, if it is using something like serialization or not.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic