we will use it when we serialize object and store the object to file.
if there no compatibility demand,we can not use it. we should use it in the under conditions:
for one object with serializable ,our target is to store it to file and the field in object may be modified ,so we should use serialVersionUID,otherwise exception will appear.
for example:
one object Employee which include a field "Name",we had store the object to file before modify the field that may be modified to "Name2". the uid of the object which had stored will be different with the uid of the object which modified in late,so there will display exception when we want to read it to memory.