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


Please Help Members By Posting Answers For Below Questions

What is data type modifier?

715


What is the difference between abstraction and encapsulation?

789


How to restrict a member of a class from inheriting by its sub classes?

1073


what is the purpose of the runtime class?

782


How many digits is int32?

728


What is valid keyword in java?

762


What is pass by value?

710


What does a void function return?

751


What happens if an exception is throws from an object's destructor?

799


Does substring start with 0?

748


Why is flag used in java?

751


Is integer passed by reference in java?

775


What is * argv?

932


Explain the significance of listiterator.

779


What is a numeric digit?

772