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
What is the size of boolean variable?
How variables are declared?
Can I import same package/class twice?
How do you define a parameter?
What is ‘is-a ‘ relationship in java?
What is the generic function?
what is daemon thread and which method is used to create the daemon thread? : Java thread
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Why string is not thread safe?
What is an inner class in java?
Can private class be extended java?
What do you mean by ordered and sorted in collections in java?
What are methods?
How do you add an element to a hashset in java?
What does index mean in java?