Java%20Beans%20Interview%20Questions%20and%20Answers
Question: 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. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What are Java Beans?
- Why do I get a NullPointerException when loading a JAR file into the BeanBox?
- What is bean persistance property?
- What are externizable interface?
- What are the purpose of introspection?