What is the need to implement Serializable interface (with
no methods) for objects which are to be serialized ?
We can write our own functionality which writes objects to
streams then why we need to implement and tell JVM that
which objects can be serialized.
Answer Posted / dbin
The problem with your own functionality is with deserialization process , when reconstructing the new objects that are equal to the objects you are trying to save....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is string builder not thread safe?
What is serialization in java?
Can inner class have constructor?
What is the difference between == and === javascript?
What is the difference between a choice and a list?
Can a static block throw exception?
How do you pass by reference?
who can i handle multiple client in RMI
Explain thread life cycle in java?
What is off heap memory?
which pattern is default in scanner package?
Differences between traditional programming language and object oriented programming language?
Can we override singleton class?
Why do we declare a class static?
What is a string token?