• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

serialize object

 
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"?



 
Ranch Hand
Posts: 251
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
file serialize on network means....file serialize to any machine which attach to network.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic