What is the difference between Serializable and Externalizable in Java?

后端 未结 11 1204
轻奢々
轻奢々 2020-11-22 12:31

What is the difference between Serializable and Externalizable in Java?

11条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 13:25

    The Externalizable interface was not actually provided to optimize the serialization process performance! but to provide means of implementing your own custom processing and offer complete control over the format and contents of the stream for an object and its super types!

    Examples of this is the implementation of AMF (ActionScript Message Format) remoting to transfer native action script objects over the network.

提交回复
热议问题