What is difference between compatible and incompatible changes in serialization?
Compatible changes
Some modifications that happed in serializable class after serialization (written to flat file / DB) but there is no exception during de-serialization is called compatible change. These are as below
1. Addition of new field.
2. Static field became non-static.
3. Transient field became non-transient
4. New super class added in class hierarchy.
Incompatible changes
Some modifications that happed in serializable class after serialization (written to flat file / DB) and there is an exception during de-serialization due to the changes is called incompatible change. These are as below
1. Delete existing field.
2. Non-static field became static.
3. Non-transient field became transient
4. Any super class removed in class hierarchy.
5. Field data type changed.
| Is This Answer Correct ? | 1 Yes | 0 No |
How do you declare a variable?
What modifiers are used with a top level class?
Why static functions are used?
What is a package in java? List down various advantages of packages.
Difference between ?System.out.println? and ?System.error.println??
What is adapter in java?
What is static in java?
Difference between java and javascript
write a code, we have two thread, one is printing even no and other print the odd no.
How do you sort a string in alphabetical order in java?
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ?
Is array dynamic in java?