What is Serialization and De serialization in java

 What is Serialization and De-serialization in java?
         Serialization is process of converting the Object to Byte stream. Only serialized
object can be stored in a file or transferred over the network. To Achieve serialization,
class or any of its super class implements either Serializable or Externalizable interface.


Deserialization is the  reverse operation of serialization where byte stream will be converted
into a copy of object


If you mark any of the variable using Transient keyword, the variable will not be
serialized. The same applies to static variables also.


Previous
Next Post »