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 difference between a choice and a list?
Write a program in java to create a doubly linked list containing n nodes.
What is lambda expression in java?
How are this() and super() used with constructors in java programming?
what is the volatile modifier for? : Java thread
What best practices should you follow while writing multithreaded code in java?
What is appletviewer?
What are actual parameters?
What is type inference in java8?
What is serialversionuid?
what is method reference in java 8?
Is arraylist sorted in java?
What is multithreading and its advantages?
What is the difference between the paint() and repaint() methods?
How can we avoid including a header more than once?