Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I use an arbitrary long value for serialVersionUID when I declare it in my class?

0
10 Posted

Can I use an arbitrary long value for serialVersionUID when I declare it in my class?

0
10

Location: http://www.jguru.com/faq/view.jsp?EID=28715 Created: Mar 26, 2000 Modified: 2000-03-26 15:24:31.6 Author: Tim Rohaly (http://www.jguru.com/guru/viewbio.jsp?EID=10) Question originally posed by Tim Rohaly PREMIUM (http://www.jguru.com/guru/viewbio.jsp?EID=10 If you don’t have any previously serialized objects of that class around, you can initialize serialVersionUID to any long value you want. However, if you do have older versions of your class and wish to maintain backward compatibility, you must use the value of serialVersionUID that is determined for you by the serialver command. See http://www.jguru.com/jguru/faq/view.jsp?EID=5063 for more information on serialver.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123