java - what is the need to transfer an object via network using serialization -


I am going through the serialization topic and read that through serialization we move an object through the network can do. What is the need to trash any object state through Newark and give me a scenario where this transfer is useful "post-text" itemprop = "text">

me Provide a scenario where this transfer is useful

I had a similar problem some time back. I was considered how to serial an object but why did not understand.

Imagine the real-world example like drive through fast food restaurants. You tell your commands in the microphone and the employees put it in the application. Now wants to see an order on your monitor in the kitchen and you have to make cheesburger and large cola. If he is running another example of application on different JVM, then the "microphone app" sortes the sequence and sends it to the "kitchen app"

There are other ways to do this , I.e. file through the basic Txt network, but in this case, both programs will need to know the format of the saved file (data type, characteristics and sequence of delimiter). Thus, serialization simplifies this process

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -