I've been trying to learn about serialization and sending data over the network and am confused about how Java is sent. When a program is running on the browser is serialization ever necessary? What is the difference between creating a program and publishing it on the web and sending data over a network which requires serialization.
In my research I read that one reason to use serialization is persistence and saving objects for the next time the program is started, for example as in a software game. But when I set an attribute on a program, say ball is color red, and then save the program in an object, when I call it up again the ball color will still be red.
Can anyone clear my befuddled brain of all of this confusion regarding saving and sending in Java??