This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When I install new version eclipse 3.1, it found out some codes I wrote before didn't have ServialVersionUID ? It's ask me tho add "use default servial version ID" or "generated serial version ID". It's will create coding like this: private static final long serialVersionUID = 1L; or private static final long serialVersionUID = 6594051617034005804L; Could anyone tell me, what's ServialVersionUID use for ? and what's difference between default ServialVersionUID and other ? Thank you so much !
Thanks for your response. I have seen the thread. WOW, so that mean when JVM need use a serializable object, it will calculate this serialVersionUID?(I didn't know that, sorry!).And if I write it in my code, the JVM will use it directly, so it can save the time, and like you say:
"In other words using the serialVersionUID will make your code faster and more uniform across platforms."
Is it right ?
author & internet detective