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

Have you ever used hashtable and dictionary?

809


If goto and const is reserve words than why it is not work in java?

1766


What is fail fast in java?

797


Is it necessary for the port addresses to be unique? Explain with reason.

803


What is variable explain?

748


What is callable java?

751


How will you initialize an Applet?

850


What are thread local variables?

787


What is an infinite loop? How infinite loop is declared?

800


What is functional interface in javatpoint?

740


Why java is used everywhere?

775


Why we used break and continue statement in java?

818


How can we find the actual size of an object on the heap?

1081


Does java initialize arrays to zero?

729


What is a copy constructor in java?

829