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
Have you ever used hashtable and dictionary?
If goto and const is reserve words than why it is not work in java?
What is fail fast in java?
Is it necessary for the port addresses to be unique? Explain with reason.
What is variable explain?
What is callable java?
How will you initialize an Applet?
What are thread local variables?
What is an infinite loop? How infinite loop is declared?
What is functional interface in javatpoint?
Why java is used everywhere?
Why we used break and continue statement in java?
How can we find the actual size of an object on the heap?
Does java initialize arrays to zero?
What is a copy constructor in java?