How to control serialization in java beans?
Submitted by: AdministratorThree 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Read Online Java Beans Job Interview Questions And Answers
Top Java Beans Questions
☺ | What are Java Beans? |
☺ | What is the relationship between Enterprise JavaBeans and JavaBeans? |
☺ | What are introspection API in java beans? |
☺ | Why do I get a NullPointerException when loading a JAR file into the BeanBox? |
☺ | What are the purpose of introspection? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |