- 3
- 0
- 约9.87千字
- 约 9页
- 2017-10-07 发布于河南
- 举报
介绍java对象序列化使用基础(Describes the use of Java object serialization base)
介绍java对象序列化使用基础(Describes the use of Java object serialization base)
1., object serialization can implement distributed objects. Main applications, such as: RMI to serialize services on remote hosts using object serialization, like running objects on a local machine.
The 2.Java object serialization not only preserves the data of an object, but also recursively saves the data of each object referenced by the object. You can write the entire object hierarchy into a byte stream that can be stored in a file or passed on a network connection. Using object serialization, you can do deep replication of objects, that is, the object itself and the referenced object itself. Serializing an object may result in the entire object sequence.
From the above narrative, we know that object serialization is a necessary weapon in Java programming, so lets start with the basics and learn about its mechanics and usage.
Java serialization is relatively simple and usually requires no custom code to write, save, and restore object status. A class object that implements only the interface (java.io.Serializable) can be converted into byte streams or restored from the byte stream without adding any code in the class. Only in rare cases do you need to customize code to save or restore object status. It is important to note that not every class is serializable; some classes are serializable; for example, classes involving threads have very complex relationships with a particular JVM.
Serialization mechanism:
Serialization is divided into two parts: serialization and de serialization. Serialization is the first part of the process, breaking data into byte streams for storage in files or for transmission over the network. Serialization means opening the byte stream and reconstructing the object. Object serialization is not only converting basic data types into byte representations, but sometimes restoring data. Restoring data requires instances of objects that recover data. The serialization proce
您可能关注的文档
- 一个职业牌手的一天(A professional player's Day).doc
- 一元一次方程测试题(Unary equation test).doc
- 一元函数微分学(Differential calculus of unary functions).doc
- 一分钟批评为什么有效(Why is one minute criticism effective).doc
- 一元多项式的加减乘法(Addition and subtraction multiplication of unary polynomials).doc
- 一单元地理模拟题(Unit geographical simulation problem).doc
- 一句话点评大学专业(In a word, the university major).doc
- 一位医学生401分的考研之旅(A medical student's 401 point postgraduate entrance exam).doc
- 一句话经典(In a word, classic).doc
- 一只兔子的故事(The story of a rabbit).doc
最近下载
- 中药新药注册药学申报资料.ppt VIP
- 中药注册技术要求及申报资料.pptx VIP
- 中药注册分类及申报资料要求.doc VIP
- 第11课 中国古代的民族关系与对外交往 高二上学期历史统编版(2019)选择性必修1国家制度与社会治理.pptx VIP
- 中药注册分类及申报资料要求国家药监局2020年第68号通告.pdf
- 第11课 中国古代的民族关系与对外交往 课件-高二上学期历史统编版(2019)选择性必修1国家制度与社会治理.pptx VIP
- 中药注册分类及申报资料要求(国家药监局2020年第68号通告).pdf VIP
- 2025年山东省聊城市中考生物真题(含答案)原卷.pdf
- 第11课 中国古代的民族关系与对外交往 课件(共56张PPT)-高二上学期历史统编版(2025)选择性必修1国家制度与社会治理(含音频+视频).pptx VIP
- 第11课 中国古代的民族关系与对外交往 课件(共24张PPT)(含音频+视频).pptx VIP
原创力文档

文档评论(0)