What is a serial version UID used for? [duplicate]
问题 This question already has answers here : What is a serialVersionUID and why should I use it? (25 answers) Closed 5 years ago . I'm creating a Java application, and when creating an interface to use with an ADT, it finds the need to initialize a random number as an ID number. public class StackFullException extends RuntimeException { private static final long serialVersionUID = 1L; public StackFullException(){} public StackFullException(String message) { super(message); } } I'm curious as to