What is serialization?
Serializable is a marker interfaces that tells the JVM is can write out the state of the object to some stream (basically read all the members, and write out their state to a stream, or to disk or something). The default mechanism is a binary format. You can also use it to clone things, or keep state between invocations, send objects across the network etc.
Serialization is a mechanism to pass data between two processes. Hence it is an IPC (inter process mechanism) tool used in java.
both are true
Serialization is a concept of converting a non-primitive object into byte streams. Generally serialization is used to transfer the data between processes (applications). So it is used to perform IPC (Inter process communication). While sending data across two processes, we have to convert non-primitive objects to primitives or bytes, as O.S understands only primitives.
thanks you.. nice description.
Back To Top