How will you override default serialization mechanism in java
Answer Posted / sharmila
Serializable is a marker interface. But you may wish to
control on how an object is serialized instead of using the
default mechanism. In such case add implementations of the
readObject() and/or writeObject() methods to the class being
serialized and override default serialization mechanism.
Also, instead of using Serializable interface,
Externalizable interface can be used
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What does the string method compareto () do?
What is finalize() function in java?
What is the purpose of lambda expressions?
Discuss 2D arrays.
What does method mean?
What is null statement?
What do you mean by global variable?
What is the purpose of using javap?
define the terminology association.
Difference between string, string builder, and string buffer?
Why 1 is not a prime number?
What is methodological theory?
What is static import in java?
How java uses the string and stringbuffer classes?
What is a class object?