Serializable interface is an interface with nothing inside
Its source code is public interface serializable{}, that is, nothing.
If there is nothing in an interface, then this interface is an identity interface, for example, a student encountered a problem, row the wrong row for a few days did not solve, at this time, she raised her hand (motioned me to help him solve), and then I used to help him solve, then this hand is actually a sign , The problem that I can't solve is to help him solve, this serializable interface in Java is for the JVM to see, tell the JVM, I do not do this class serialization, you (JVM) to me serialization, serialization is to become a binary stream, such as cloud computing, Hadoop, In particular, Hadoop is a completely distributed environment, then it involves the object to be transferred in the network, the inside is all binary stream, of course, you can do this serialization operation is also possible, but this class may also have a class, if you put the outside class object person into binary, Then it's also going to serialize (it's going to take a deep traversal, it's cumbersome), just tell the JVM to let him do it for you.
Interview question: The meaning of Object serialization interface (Serializable) in Java