I am writing a dummy class to see how ObjectInputStream works. I was able to successfully serialize an Object, but have issue reading it.
Here is my Address Object class:
Class used to serialize object:
Class used to read serialized object from a file:
When i run my Deserializer class i am seeing this error:
Issue is with this line in the Deserializer class: address = (ArrayList<Address>) ois.readObject();
What can be the issue here?