Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is difference between compatible and incompatible changes in serialization?



What is difference between compatible and incompatible changes in serialization?..

Answer / javamasque

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

Post New Answer

More Core Java Interview Questions

I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

0 Answers  


What is the purpose of premetive data types in java?

2 Answers   Merrill Lynch, TCS,


Name the package that most of the AWT events that supports event-delegation model are defined?

2 Answers  


What is finalize()?

0 Answers  


What do you mean by hashing?

0 Answers   Amazon,


What is difference between Iterator and for loop

9 Answers   HP,


Is alive method in java?

0 Answers  


What are the benefits of operations?

0 Answers  


What is the argument type of main() method?

2 Answers  


What is java volatile?

0 Answers  


Is main is a keyword?

0 Answers  


Difference between Choice and a List?

1 Answers  


Categories