I have an object with a HashMap
field and a few methods that I am trying to serialize. However, at runtime, I am getting a java.io.NotSerializableException
.
I was checking to see if HashMaps
could be serialized and from what I have read they are so I am not sure what the problem is.
I was just wondering what makes an object be able to be serialized and why would this object that seems to only have fields that can be serialized not be able to as well.