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
How finally used under exception handling?
Why is singleton class used?
How can we break singleton in java?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
Why are there no global variables in java?
Can a constructor call the constructor of parent class?
How do you escape json?
How many types of flags are there?
What is the use of pattern in java?
What is replacefirst in java?
Can a static class implement an interface?
What is busy spin, and why should you use it?
How are variables stored in memory?
What is locale?
Why is string class considered immutable?