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
How do you reverse a word in java?
How do you reverse a string in java?
Explain methods specific to list interface?
What are the basic control structures?
What is the java idl system?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
Difference between java and javascript
What package is math in java?
What is flush buffer?
how to write a program for sending mails between client and server
Why do you canvas?
What does snprintf return?
Explain reverse a linked list recursive java solution?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
Can we inherit inner class?