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 |
Explain about exception propagation?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is the use of predicate in java 8?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,
Why we use methods in java?
How do you start a new line in java?
How to find the largest value from the given array.
What is contractor means and methods?
What is hash table in java?
Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?
How do you take thread dump in java?
What is a jagged array in java?