Java Beans Question:
Download Questions PDF

How to control serialization in java beans?

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is introspection properties in java beans?What is the serializable class in java beans?