If serialization is so important, why isn't it the default for all classes? Why doesn't class Object implement Serializable, and then all subclasses will be automatically Serializable?

Questions by krishna_darl   answers by krishna_darl

Showing Answers 1 - 1 of 1 Answers

tarunarora

  • Jul 28th, 2006
 

Serialization is an important process, but it comes at the cost of performance. Moreover, it is not required that all the classes should be serialized. We need to serialize only those classes whose OBJECTS have to be passed on network through streams so that when the object reaches the receiver, its not corrupted and its orignal state can be regained through DESERIALIZATIOn process.Hope thats gud enough, pls provied any other comments in addition to this. Thnx

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.