To do this, you must implement the Serializable interface, yes. But this does not guarantee that the object will be correctly serialized if you use complex data structures. If your object consists of Java SE components, I don’t think that you will have problems, your objects will be serialized using reflection by the RMI system.
source share