InterviewSolution
| 1. |
What Is Serialversionuid In Java? |
|
Answer» EVERY time an object is SERIALIZED the Java serialization MECHANISM automatically computes a hash value called serialVersionUID. ObjectStreamClass's computeSerialVersionUID() method PASSES the class name, sorted member NAMES, modifiers, and interfaces to the secure hash algorithm (SHA), which returns a hash value.The serialVersionUID is also called suid. Every time an object is serialized the Java serialization mechanism automatically computes a hash value called serialVersionUID. ObjectStreamClass's computeSerialVersionUID() method passes the class name, sorted member names, modifiers, and interfaces to the secure hash algorithm (SHA), which returns a hash value.The serialVersionUID is also called suid. |
|