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 I get the | symbol on my keyboard?
What are access specifiers available in java?
How do you convert bytes to character in java?
Explain constructors and types of constructors in java.
What are access specifiers in java ?
0 Answers Akamai Technologies,
What is args length in java?
What is intern method in java?
relation between list and linked list
how to print hello world every second till i have pressed enter key ???
Why java is object oriented?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What is final?