Serialization is used to pass java objects from on...
# random
e
Serialization is used to pass java objects from one JVM to another but can’t we have java objects in single JVM itself,? Can someone tell me use case when we have to pass java objects from one jvm to another?
b
RPC
Sending data over the wire using interoperable formats like json or XML incurs cost. If you know you have same target vm then serialisation is fast and safe. Serialisation will also be network efficient. The same applies for storing binary state on disk for later restoration. Python uses pickling for that