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 the difference between association, aggregation and inheritance relationships.
How do singleton patterns work?
What are the procedures?
Difference between default and protected access specifiers?
How to change the priority of thread or how to set priority of thread?
Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
Explain the concept of proper inheritance?
0 Answers Thomson Reuters, Virtusa,
Does java linked list allow duplicates?
Why lambda expression is used in java?
Can we override static methods in java?
What is the maximum size of list in java?
What is meant by event handling in SAX parser?