This question already has answers here:
What does Serializable mean?
                                
                                    (10个答案)
                                
                        
                        
                            What is object serialization?
                                
                                    (14个回答)
                                
                        
                                4年前关闭。
            
                    
通过定义我不太清楚我已经阅读了可序列化的实际功能...

import java.io.Serializable;
import java.text.StringCharacterIterator;
import java.util.*;
import java.io.*;

public final class SavingsAccount implements Serializable {

最佳答案

使用implements Serializable时,可以将对象转换为字节,以便可以通过网络发送对象,可以将其保存在目录中以及在网络的另一端进行重建等。

关于java - “可序列化”是什么意思? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33546411/

10-08 21:49