 Hello friends. I am Sanjay Gupta. In this video, I am going to discuss the concept object serialization, which is available in Java. Before starting, you can subscribe my YouTube channel by clicking on the link which is available at the bottom right corner of this video. You can download my app, TakMS, that is available on Google Play. You can connect with me by following these details which are available in front of you. Now coming onto the topic, here I am going to discuss the concept object serialization with you. So this concept is required while you are reading or writing an object of the class into a file. So first point says object serialization allows an object to be transformed into a sequence of bytes that can later be recreated or deserialized into the original object. After deserialization, the object has the same state as it had when it was serialized. The mechanism is generally known as persistence. So serialized means storing the object into a file and deserialized means retrieving the object which were stored inside the file back. Next point says the class of the object must implement the serializable interface if we want the object to be serialized. So this is important. If you want to store an object into a file, then you have to implement this interface serializable. The serializable interface contains no method in it. This kind of interface is called marker interface. So whenever you want to store an object of the class, then you have to implement serializable interface for that class. Next point says object output stream. This is the class which you have to use while writing an object into a file. So object output stream contains a method write object. Using this method, we can write an object of a class in an output stream. So you have to use this class so that you can use write object method to write any object into a file. Last point says object input stream contains, so object input stream is also a class which contains a method read object which is used to read the object from the input stream. So the object which is stored inside the file, if you want to read it back, then you have to create object of object input stream class and you have to use read object method so that you can read the object back from that file. So this is all about object serialization. In short, it is the mechanism with the help of this mechanism. You can store an object into a file. You can retrieve it back and for this purpose, you have to use serializable interface. So this is all about object serialization. If you want to watch more programming related videos, you can subscribe my YouTube channel. Thank you for watching this video.