• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

private static final long serialVersionUID = 1L; - Don't exist unique at a class that extends...

 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



Don't exist unique at a class that extends the Serializeble Interface?

 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand the question. Sorry.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand question too but from

private static final long serialVersionUID = 1L;



this is a default value of serialVersionUID.
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tanathip Viriya wrote:I don't understand question too but from

private static final long serialVersionUID = 1L;



this is a default value of serialVersionUID.


Actually, the default value is calculated automatically. Just try it - create a class without a serialVersionUID field, then run the "serialver" tool with the class name (e.g. serialver Test).

Most IDE's choose to add 1L as the default value but I prefer to let my Eclipse generate it (most likely using serialver).
 
Tanathip Viriya
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Prime wrote:

Tanathip Viriya wrote:I don't understand question too but from

private static final long serialVersionUID = 1L;



this is a default value of serialVersionUID.


Actually, the default value is calculated automatically. Just try it - create a class without a serialVersionUID field, then run the "serialver" tool with the class name (e.g. serialver Test).

Most IDE's choose to add 1L as the default value but I prefer to let my Eclipse generate it (most likely using serialver).



Thank you for clarification.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic