8) What is serialization?
Quite simply, object serialization provides a program the ability to read or write a whole
object to and from a raw byte stream. It allows Java objects and primitives to be encoded
into a byte stream suitable for streaming to some type of network or to a file-system, or
more generally, to a transmission medium or storage facility. A seralizable object must
implement the Serilizable interface. We use ObjectOutputStream to write this object to a
stream and ObjectInputStream to read it from the stream.
Do'stlaringiz bilan baham: |