The Java SE 6 documentation on Object Serialization states the following about the uses of Java serialization: Serialization is used for lightweight persistence and for communication via sockets or ...
Creating simple data classes in Java traditionally required substantial boilerplate code. Consider how we would represent Java’s mascots, Duke and Juggy: public class JavaMascot { private final String ...
I think you need to post more code. I can't see anything wrong with the Login object. I'd bet if you were to write a test that serialized and deserialized it, it'd work fine. Maybe you are trying to ...