Core Java Interview Questions - Serial Version UID

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Questions -
1. The serialVersionUID itself would not be serialized right? - Since it is static and static members won't be serialized.
2. Suppose in client jvm and sever jvm example - If at the server jvm side we add one more member and do not change the serialVersionUID then will it throw exception or not? How will server jvm come to know that the class has changed if we are not changing the serialVersionUID?

tejeshwar.p
Автор

Keep adding and keep rocking. You have a best voice.

npallintipallinti
Автор

what if I assign the same serialversionuid to 2 or more classes ? . for.example, class A has same seriaversionuid of class B. then JVM will not be able to produce the same class n server JVM.

muthukrishnan