The Employee serializable class does not declare a static final field serialVersionUID of type long

In my Eclipse, I tried the serialization example, and I came across the following warning

enter image description here

I know what serialVersionUID is and what it matters to Serialization. I have the following questions about this warning.

  • How the IDE sets the default value. Is it hardcoded in the IDE?
  • When he says generate an identifier, what parameters are used to generate a new identifier?
  • Not sure what the third option is. Says something about suppressing annotation. Does this mean that the identifier is not assigned at all. In this case, what is used for serialization?
+4
1

IDE . IDE?

yes - , 1L

, ?

, , eclipse, , serialver utillity, serialVersionUID

$serialver A
serialver A:    static final long serialVersionUID = -609421954100196333L;

, . - . , . , ?

, java- , @SuppressWarning


.

+3

All Articles