- Most of the interview Room question is serialization. it's mean I have an one object is that, object state is there and this state i want to save permanently in File. that process is knows serialization.
- and Reverse is De-Serialization. it's mean I want reading a state of object from File. that process of know as de-serialization.
- But in internally what happen in serialization and de-serialization we don't know ok. so proper meaning of serialization is...
- Definition of Serialization :
- The Process of Converting an object from java support form to file support form either Network support form this process know as serialization.
|
Serialization & De-Serialization |
- How we can implement Serialization.
- Using FileOutputStream or Using ObjectOutputStream.
- ObjectOutputStream is writeObject() method to write data into file. OOS.writeObject(objectname);
|
how we can implement serialization. |
- Definition of De-Serialization :
- The Process of Converting an File from File support form to Object support form this process know as serialization. It's reverse process of serialization.
- How we can implement de-serialization.
- Using FileOutputStream(FOS) or Using ObjectInputStream(OIS).
- objectInputStream is readObject(); method that read data from file.
|
De-Serialization |
so, That is Serialization or De-Serialization.
Comments
Post a Comment