![]() Its syntax is as simple as follows: serialver The -classpath option specifies where to look for the classes (in directories or jar files, separated by semicolon marks ). The serialver command is helpful in case we want to know that number without having source code of the class. Basically, a serializable class must declare a constant named serialVersionUID (either explicitly by the programmer or implicitly by the compiler) like this: public class User implements Serializable The serialVersionUID number is important when dealing with the serialization/de-serialization of objects of a class. ![]() It is used to get serialVersionUID numbers of one or more Java classes. The serialver is a tool that comes with JDK. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |