I have started to work with sending data over sockets the past few weeks. I started by sending multiple strings with my data and then parsing the data into floats or what ever type i needed it for. but over time i noticed my client would start to slow down because its reading and converting multiple strings and using them while my server is only dishing them out. So i began sending Serializable objects which work and are great but i have some questions about them.
public class Packet implements Serializable{
private static final long serialVersionUID = -7896044384334791233L;
//data here
}
a class i would send looks something like this but with the data i want to send. Removing the serial VersionUID creates a error. What is the serialVersionUID and if it is the same in all the objects i am sending why is this one long necessary for my program to work?