Java Beans Question: Download Java Beans PDF

How to control serialization in java beans?

Tweet Share WhatsApp

Answer:

Three ways to control serilization in java beans:

1.Automatic serialization, implemented by the Serializable interface. The Java serialization software serializes the entire object, except transient and static fields.
2.Customized serialization. Selectively exclude fields you do not want serialized by marking with the transient (or static) modifier.
3.Customized file format, implemented by the Externalizable interface and its two methods. Beans are written in a specific file format.

Download Java Beans PDF Read All 57 Java Beans Questions
Previous QuestionNext Question
What is introspection properties in java beans?What is the serializable class in java beans?