Java Interview Question And Answer What is SerialVersionUID in Java Why do we need it Java Intervi

preview_player
Показать описание

What is SerialVersionUID ? Why do we need it ?
*
* As name suggests this SerialVersionUID is used to store class version id , which will talk about "Version of class"
* and it is used in "Serialization" to check whether SENDER and RECEIVER of the class are LOADING the same version of class or not.
* It means whether both class versions are compatible or not.

A Job Portal

Other Top Job Portals

Are you looking for a new Job ?
Рекомендации по теме
Комментарии
Автор

so if i dont intend to change the class do i need this?

ColonelFlickage
Автор

what's the difference between default serial version Id and generated serial version Id . Please, explain usage of generated serial version id.

ssnarayanathammireddy
Автор

How do you use the Serialver in the JDK bin directory?

Can someone instruct me on how to create the SerialVersionUID using Serialver.

ramansb