Ajeeth Kumar wrote:So can we say that serialization provides a "container" for a java object, just like how jpg files are for images or pic?
You could say that, yes. Other people might not consider a JPEG file to be a container for a picture, however, but it's true that serializing a Java object provides a
representation of that object which can be transported elsewhere and converted back into another object, so in that sense it's the same sort of thing.
Also, when you say where can we browse the serialized files, where/how can we see them?
If you wrote the serialized object to a file, then you can see the file using any software which allows you to see files. As far as the operating system is concerned it's just another file, and the O/S doesn't care whether it contains a serialized Java object or a JPEG version of a picture or a text file containing your credit-card number or anything else.
But if you look inside the file, don't expect to be able to visualize the Java object, any more than you can visualize a picture by looking at the bytes in a JPEG version of the picture.