InterviewSolution
| 1. |
Does Setting The Serialversionuid Class Field Improve Java Serialization Performance? |
|
Answer» Declaring an explicit SERIALVERSIONUID field in your classes saves some CPU TIME only the first time the JVM PROCESS serializes a given Class. However the gain is not significant, In case when you have not declared the serialVersionUID its value is COMPUTED by JVM once and SUBSEQUENTLY kept in a soft cache for future use. Declaring an explicit serialVersionUID field in your classes saves some CPU time only the first time the JVM process serializes a given Class. However the gain is not significant, In case when you have not declared the serialVersionUID its value is computed by JVM once and subsequently kept in a soft cache for future use. |
|