Hello. I configure the client to communicate with the server through serialization.
I have a wrapper class in which I put the name of the class and the method I need to call on the server. before being sent to the server, it is serialized, well, and there, respectively, it is deserialized.
The question is:
Some methods on the server should return me some objects. For example, an object of class User . On the server lies, suppose, a jar file from which the server finds out about such a class. How does the client know about this class?
After all, I understand that the wrong approach would be to duplicate two files on this client and server with this class?
Then, if this class changes on the server, will an error be generated during serialization / deserialization? Or not?