Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

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:

©2024 WithoutBook