Prev Next

Java / Java Serialization

Give few examples of incompatible changes in Java serialization.

Changing implementation from Serializable to Externalizable interface,

Deleting an existing Serializable field,

Changing non-transient field to transient, non-static to static,

Changing the field type,

Updating the class package.

Modifying the writeObject() / readObject() method, we must not modify these methods, though adding or removing is a compatible change.

It's right time to invest in Cryptocurrencies! Earn free bitcoins up to $250 now by signing up.

Earn bitcoins upto $250 (free), invest in other Cryptocurrencies when you signup with blockfi. Use the referral link: https://blockfi.com/?ref=f2ab78ba

Using BlockFi, don't just buy crypto - start earning on it. Open an interest account with up to 8.6% APY, trade currencies, or borrow money without selling your assets.

Invest now!!! Get Free equity stock (US,UK only)!

Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.

The Robinhood app makes it easy to trade stocks, crypto and more.

More Related questions...

What is Serialization in Java? How to create a serializable class in Java? Difference between Serializable and Externalizable interface in Java. Why do we need Externalizable interface? Is Serializable a marker interface in Java? Can a Serialized object be transmitted through network? Which variables are not serialized during Java Serialization? What is serialVersionUID in Java? Do we need to implement any method when using Serializable interface? What is transient variable in Java? Why static variables are not serialized in Java? Is Externalizable a marker interface in Java? What happens when one of the members of the class does not implement Serializable interface? How to prevent a child class from being serialized when it's parent class already implements Serializable interface? What are the compatible and incompatible changes in Java Serialization Mechanism? How to improve Java serialization performance? When to use Serializable versus Externalizable? List few alternatives to Java serialization. How do I serialize a collection in Java? Give more examples of compatible changes in Java serialization. Give few examples of incompatible changes in Java serialization. Which method is used during Serialization and DeSerialization process in Java? What is the value of a transient variable after de-serialization? Does having SerialVersionUID variable improve Java serialization performance? Is the constructor invoked when a Java object is de-serialized? How to generate a SerialVersionUID in Java? List few differences between Serializable and Externalizable in Java. Do primitive data types involve in serialization? What happens when a class does not define SerialVersionUID in Java? Is constructor of parent class called during DeSerialization process of child class? Difference between readResolve and readObject methods in Java serialization. How do I prevent deserialization process creating another instance of Singleton class? Is there any limit on the size of a serialized object? How do I serialize a third party library class in Java? How do I improve Serialization performance? When is the readResolve method called?
Show more question and Answers...

JDBC

Comments & Discussions