Just like we can not only store primitive data values ,a nd objects to files. We can likewise add objects inside an array to a file .
Saving the state of the objects to that file. Which are inside the array.

We start by creating an array , and putting our objects inside the array.
Saving , our array to our file.

Output from saving our array to a file :

So how do we read our objects again from the file ? We deserialize our File that contains our array , and will be able to see once again our objects.

FileInputStream and ObjectInputStream are very powerful tools what are they ?FileInputStream: obtains input bytes from a file in a file system. What files are available depends on the host environment. and ObjectInputStream : deserializes primitive data and objects previously written using an ObjectOutputStream.
Now ! , lets conclude our program .

Output from Reading our array that’s inside our file :
