File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Serialization - serialVersionUID
Joined: Jun 14, 2010
Nov 18, 2012 08:06:48
The serializable class Box does not declare a static final serialVersionUID field of type long..
For which classes is the above warning messages shown?
Is it just for classes which implement Serializable?
Joined: Sep 04, 2012
Nov 18, 2012 08:25:14
well to me it says class Box? I assume didn't specify a long when declaring and initializing serialVersionUID?
Joined: Mar 07, 2012
Nov 18, 2012 08:57:13
Refer to the description of a Serializable interface
If your class Box does not implement directly a serializable interface then probably it extends from a class which is serializable.
Joined: Oct 13, 2005
Nov 18, 2012 11:23:58
This recent thread
might help, too.
I agree. Here's the link:
subject: Serialization - serialVersionUID
few Qs on serialVersionUID
what is the use of the private static long serialVersionUID variable ?
What is "serialVersionUID"
Serialization - different JVM version ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014