Here is a small collection of links about serializability in Java, which amounts in particular to the implementation of the interface Serializable
.
Java Rebel: implement Serializable could probably contains EVERYTHING (and more) to know what you want - Java Object Serialization Specification : - Good summary SUN.
short answer to the question of how to make a Java class serializable:
Serializable interface class must implementservialver
class must have a
serialVersionUID and that the value most about the tool included with JDK
is generated (this may well follow the instructions
the CLASSPATH and NOT accidentally address the source directory). If you use Eclipse, the IDE can also be used to generate. Notes to here.
The final class looks for example like this: public class
SMAbschluss