Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

serializable class has no defination of serialVersionUID

807598Jul 24 2006 — edited Oct 11 2006
Hi Everone!

With hope that any one can help me, I post my problem here for SerialVersionUID. I found different Fourm on this, but I am still confusued that serialVersionUId has a different nos which one is best for my warning: [seria] serializable class has no defination of serialVeraionUID? to solve this warning I tried different ID like:

public static long serialVersionUID = 9076389647060684332L;
public final long serialVersionUID = -3880222080803749628L;
public final long serialVersionUID = 1301842297487252802L;
private static final long serialVersionUID=1L;
private static final long serialVersionUID=3L;
private static final long serialVersionUID=4L;

I tried different, but still my program has a same warning.
I found some has a negative no like -3880222080803749628L, some has value 1L,2L,4L. what does mean by L at last ?

so many questions, right.!

But I know from somany, few of you are guru in java & definately will help me to solve my query.

Thanks & waiting for reply from my friends.

Kirti

email:kirtimistry2001@yahoo.com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2006
Added on Jul 24 2006
5 comments
533 views