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
State the main difference between c++ and java?
What is the do while loop syntax?
Do we have pointers in java?
What is java util function?
What is keyset in java?
What are the classes of java?
Can two objects have same hashcode?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is a constructor overloading in java?
Is alive and join method in java?
Is it necessary for the port addresses to be unique? Explain with reason.
If a class is declared without any access modifiers, where can the class be accessed?
What is null in java?
What is the difference between math floor and math round?
Why volatile is used in java?