登录

立即登录

去注册

忘记密码?

验证码登录

点击获取验证码

立即登录

去注册

注册

点击获取验证码

立即注册

找回密码

点击获取验证码

确定

全部资讯

全部资讯   / 中软国际-JAVA中级 面试题集(2021版)

中软国际-JAVA中级 面试题集(2021版)

2021-12-25 13:55:43

<div class="WordSection1"> <p class="MsoNormal" style="margin-top:9.25pt;text-indent:1.65pt;line-height: 92%;mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height: 92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.35pt">1</span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.6pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt">j</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.3pt">v</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt"> </span><span style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.55pt">中</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.45pt">==</span><span style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.55pt">和</span><span style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt"> </span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.4pt">q</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">ua</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt">l</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.3pt">s</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt"> </span><span style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.55pt">和</span><span style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt"> </span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">ha</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.3pt">s</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">h</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.4pt">Cod</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt"> </span><span style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.55pt">的区</span><span style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.5pt">别</span><span lang="EN-US" style="font-size: 10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:15.45pt;margin-right:5.7pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:1.0pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">1</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">)</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span lang="EN-US" style="letter-spacing: .45pt">==</span><span style="letter-spacing:.55pt">若是基本数据类型</span><span style="letter-spacing:.5pt">比较</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">是比较值</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">若是引用类型</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">则比较的是他们在内存中的存</span> <span style="letter-spacing: .4pt">放</span><span style="letter-spacing:.35pt">地址</span><span style="letter-spacing:.45pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.35pt">对象是存放在堆中</span><span style="letter-spacing:.45pt">,</span><span style="letter-spacing:.35pt">栈中存放的对象的引用</span><span style="letter-spacing:.45pt">,</span><span style="letter-spacing:.35pt">所以</span><span lang="EN-US" style="letter-spacing:.3pt">==</span><span style="letter-spacing: .35pt">是对栈中的值进行比较</span><span style="letter-spacing:.45pt">,</span><span style="letter-spacing:.35pt">若</span> <span style="letter-spacing:.45pt">返回</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .2pt">tr</span><span lang="EN-US" style="letter-spacing:.3pt">u</span><span lang="EN-US" style="letter-spacing:.25pt">e</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing:.45pt">代表变量的内存地址</span><span style="letter-spacing:.4pt">相等</span><span style="letter-spacing:.5pt">;</span></span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.35pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:.5pt;line-height:184%"><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">2</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">)</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">equa</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">是</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">O</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">j</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">类中的方法,</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">O</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">j</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">类的</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">equa</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">方法用于判断</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">对象的内存地址引用</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.3pt">是不是同一个地址(是不是同一个对象</span><span style="letter-spacing:.4pt">)</span><span style="letter-spacing:.35pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.3pt">若是类中覆盖了</span><span lang="EN-US" style="letter-spacing: .2pt"> equa</span><span lang="EN-US" style="letter-spacing:.1pt">l</span><span lang="EN-US" style="letter-spacing:.15pt">s</span><span lang="EN-US" style="letter-spacing:.2pt"> </span><span style="letter-spacing:.3pt">方法</span><span style="letter-spacing:.35pt">,</span><span style="letter-spacing:.3pt">就要根据具体代</span> <span style="letter-spacing:.5pt">码来确定,一般覆盖后都是通过对象的内</span><span style="letter-spacing:.45pt">容是否相等来判断对象是否相等</span><span style="letter-spacing: .5pt">。</span></span><span lang="EN-US" style="font-size:10.0pt;line-height:184%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.25pt;margin-right:0cm;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;text-indent:.55pt;line-height:182%"><span lang="EN-US" style="font-size:10.0pt;line-height:182%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">3</span><span style="font-size:10.0pt;line-height:182%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">)</span><span style="font-size:10.0pt;line-height:182%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span lang="EN-US" style="letter-spacing: .4pt">h</span><span lang="EN-US" style="letter-spacing:.35pt">a</span><span lang="EN-US" style="letter-spacing:.25pt">s</span><span lang="EN-US" style="letter-spacing:.35pt">hCod</span><span lang="EN-US" style="letter-spacing: .3pt">e</span><span lang="EN-US" style="letter-spacing:.2pt">()</span><span style="letter-spacing:.5pt">计算出对象实例的哈希码</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">在对象进行散列时作为</span><span style="letter-spacing:.25pt"> </span><span lang="EN-US" style="letter-spacing:.3pt">key</span><span lang="EN-US" style="letter-spacing:.25pt"> </span><span style="letter-spacing:.5pt">存入</span><span style="letter-spacing:.25pt"> </span><span style="letter-spacing:.6pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.5pt">之所以有</span><span lang="EN-US">&nbsp; <span style="letter-spacing:.2pt">ha</span><span style="letter-spacing:.15pt">s</span><span style="letter-spacing:.2pt">hCode</span><span style="letter-spacing:.1pt"> </span></span><span style="letter-spacing:.3pt">方法,因为在批量的对象比较中,</span><span lang="EN-US" style="letter-spacing:.2pt">ha</span><span lang="EN-US" style="letter-spacing:.15pt">s</span><span lang="EN-US" style="letter-spacing: .2pt">hCode</span><span lang="EN-US" style="letter-spacing:.1pt"> </span><span style="letter-spacing:.25pt">比较要比</span><span style="letter-spacing:.1pt"> </span><span lang="EN-US" style="letter-spacing:.15pt">equa</span><span lang="EN-US" style="letter-spacing:.05pt">l</span><span lang="EN-US" style="letter-spacing: .1pt">s </span><span style="letter-spacing:.25pt">快</span><span style="letter-spacing:.3pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.25pt">在添加新元</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.55pt">素时</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.55pt">先调用这个元素的</span><span style="letter-spacing:.2pt"> </span><span lang="EN-US" style="letter-spacing:.35pt">h</span><span lang="EN-US" style="letter-spacing:.3pt">a</span><span lang="EN-US" style="letter-spacing: .25pt">s</span><span lang="EN-US" style="letter-spacing:.35pt">hCod</span><span lang="EN-US" style="letter-spacing:.3pt">e</span><span lang="EN-US" style="letter-spacing:.2pt"> </span><span style="letter-spacing:.55pt">方法</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.55pt">一下子能定位到它应该旋转的物理位置</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">若该</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.35pt">位置没有元素,可直接存储;若该位置有元素,就调用它的</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .2pt">e</span><span lang="EN-US" style="letter-spacing:.25pt">q</span><span lang="EN-US" style="letter-spacing:.2pt">ua</span><span lang="EN-US" style="letter-spacing:.1pt">l</span><span lang="EN-US" style="letter-spacing: .2pt">s</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing:.3pt">方法与新元素进行比较</span><span style="letter-spacing:.35pt">,</span> <span style="letter-spacing:.5pt">若</span><span style="letter-spacing:.45pt">相同则不存</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">不相同</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">就放到该位置的链表末端</span><span style="letter-spacing:.55pt">。</span></span><span lang="EN-US" style="font-size: 10.0pt;line-height:182%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:.75pt;line-height:97%"><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">4</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">)</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">equa</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">s </span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">与</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ha</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">h</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">C</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ode</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">方法关系</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">:</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:2.35pt;margin-bottom: 0cm;margin-left:.9pt;margin-bottom:.0001pt;text-indent:.65pt;line-height:184%"><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">hashCode()<span style="letter-spacing: -2.95pt"> </span></span><span style="font-size:10.0pt;line-height:184%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333">是<span style="letter-spacing:-.05pt"> </span>一<span style="letter-spacing:-.05pt"> </span>个<span style="letter-spacing:-.05pt"> </span>本<span style="letter-spacing:-.05pt"> </span>地<span style="letter-spacing:-.05pt"> </span>方<span style="letter-spacing:-.05pt"> </span>法 <span style="letter-spacing:-5.0pt">,</span><span lang="EN-US" style="letter-spacing: -2.95pt">&nbsp; </span>实 现 是 根 据 本 地 机 器 上 关 的 <span style="letter-spacing:-5.0pt">。</span><span lang="EN-US" style="letter-spacing: -2.95pt">&nbsp;&nbsp; </span><span lang="EN-US">equals()<span style="letter-spacing:-2.95pt"> </span></span>相 等 的 对 象 <span style="letter-spacing: -5.0pt">,</span><span lang="EN-US"> hashCode()</span>也一定相等<span style="letter-spacing: .05pt">;</span><span lang="EN-US">hashCode()</span>不等<span style="letter-spacing: .05pt">,</span><span lang="EN-US">equals()</span>一定也不等<span style="letter-spacing: .05pt">;</span><span lang="EN-US">hashCode()</span>相等<span style="letter-spacing: .05pt">,</span><span lang="EN-US">equals() </span><span style="letter-spacing: .45pt">可</span><span style="letter-spacing:.4pt">能相等</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.4pt">也可能不等</span><span style="letter-spacing:.5pt">。</span></span><span lang="EN-US" style="font-size: 10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:.8pt;line-height:90%"><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">所<span style="letter-spacing:-.05pt"> </span>以<span style="letter-spacing:-.05pt"> </span>在 重 写<span lang="EN-US"> equals(Object&nbsp; obj)<span style="letter-spacing:-.55pt"> </span></span>方 法<span lang="EN-US">&nbsp; </span><span style="letter-spacing:-.05pt">,</span><span lang="EN-US" style="letter-spacing: -.55pt">&nbsp; </span>有 必 要 重 写 <span lang="EN-US">hashCode()<span style="letter-spacing:-.55pt"> </span></span>方 法<span lang="EN-US">&nbsp; </span><span style="letter-spacing:-.05pt">,</span><span lang="EN-US" style="letter-spacing: -.55pt">&nbsp; </span>确 保 通 过</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:9.45pt;text-indent:1.2pt;line-height:90%"><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">qu</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">(</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">O</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">j</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ec</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">ob</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">j)</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">方法判断结果为</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">tr</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">u</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">的两个对象具备相等的</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">h</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">as</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">hCod</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">()</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">返回值</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">。</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:117%"><span lang="EN-US">&nbsp;</span><span lang="EN-US" style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">5</span><span style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.5pt;">)</span><span lang="EN-US" style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">e</span><span lang="EN-US" style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">qu</span><span lang="EN-US" style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">a</span><span lang="EN-US" style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">l</span><span lang="EN-US" style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">s </span><span style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">与</span><span lang="EN-US" style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">==</span><span style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">的关系</span><span style="text-indent: 1.55pt; font-size: 10pt; line-height: 97%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.5pt;">:</span></p> <p class="MsoNormal" style="line-height:113%"><span lang="EN-US">&nbsp;</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">I</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">n</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">t</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">e</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">g</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">e</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">r</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">b</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">1</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">=</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">127</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">;</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">在</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> j</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">ava</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">编译时被编译成</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> I</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">n</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">t</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">e</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">g</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">e</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">r </span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">b</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">1</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">=</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">I</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">n</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">t</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">e</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">g</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">e</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">r</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">.</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">va</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">l</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">u</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">e</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">O</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">f(</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">127</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">);</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">对于</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">-</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">128</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);"> </span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">到</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">127</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">之间的</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> I</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">n</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">t</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">ege</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">r </span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">值</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">,</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">用的是原生数据类型</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> i</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">n</span><span lang="EN-US" style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">t</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">,</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">会在内存里供重</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">用</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">,</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">也就是这之间的</span><span style="text-indent: 0.85pt; font-size: 10pt; line-height: 183%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);"> <span lang="EN-US" style="letter-spacing: .1pt">I</span><span lang="EN-US" style="letter-spacing:.15pt">n</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span lang="EN-US" style="letter-spacing:.15pt">ege</span><span lang="EN-US" style="letter-spacing: .1pt">r </span><span style="letter-spacing:.25pt">值进行</span><span lang="EN-US" style="letter-spacing:.2pt">==</span><span style="letter-spacing:.25pt">比较时,只是进行</span><span lang="EN-US" style="letter-spacing:.1pt"> i</span><span lang="EN-US" style="letter-spacing:.15pt">n</span><span lang="EN-US" style="letter-spacing: .1pt">t </span><span style="letter-spacing:.25pt">原生数</span><span style="letter-spacing:.2pt">据类型的数值进行比较</span><span style="letter-spacing:.25pt">。</span><span style="letter-spacing:.2pt">而超出</span><span lang="EN-US" style="letter-spacing: .1pt">-128 </span><span style="letter-spacing:.2pt">〜</span><span lang="EN-US" style="letter-spacing:.1pt"> 127</span><span lang="EN-US"> </span><span style="letter-spacing:.5pt">的范围</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">进行</span><span lang="EN-US" style="letter-spacing: .35pt">==</span><span style="letter-spacing:.45pt">比较时是进行地址及数值比较</span><span style="letter-spacing:.55pt">。</span></span></p> <p class="MsoNormal" style="line-height:104%"><span lang="EN-US">&nbsp;</span><span lang="EN-US" style="text-indent: 1.2pt; font-size: 10pt; line-height: 92%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);">2</span><span style="text-indent: 1.2pt; font-size: 10pt; line-height: 92%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: -0.05pt;">、</span><span lang="EN-US" style="text-indent: 1.2pt; font-size: 10pt; line-height: 92%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: -1.15pt;">&nbsp; </span><span lang="EN-US" style="text-indent: 1.2pt; font-size: 10pt; line-height: 92%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);">int</span><span style="text-indent: 1.2pt; font-size: 10pt; line-height: 92%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);">、<span lang="EN-US" style="letter-spacing:-1.15pt">&nbsp; </span><span lang="EN-US">char</span>、<span lang="EN-US" style="letter-spacing: -1.15pt">&nbsp; </span><span lang="EN-US">long </span>各占多少字节数</span></p> <p class="MsoNormal" style="margin-top:15.55pt;margin-right:3.55pt;margin-bottom: 0cm;margin-left:2.05pt;margin-bottom:.0001pt;text-indent:-.6pt;line-height: 187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family: &quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t\f</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">oa</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">占用</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">4</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">个字节</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">,</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ho</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">rt\c</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ha</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">占用</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">2</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">个字节</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span lang="EN-US" style="letter-spacing: .1pt">l</span><span lang="EN-US" style="letter-spacing:.2pt">ong</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing: .3pt">占用</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing:.2pt">8</span><span lang="EN-US" style="letter-spacing: .15pt"> </span><span style="letter-spacing:.3pt">个字</span><span style="letter-spacing:.25pt">节</span><span style="letter-spacing:.35pt">,</span><span lang="EN-US" style="letter-spacing:.15pt">by</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span lang="EN-US" style="letter-spacing: .15pt">e</span><span lang="EN-US" style="letter-spacing:.1pt">/</span><span lang="EN-US" style="letter-spacing:.15pt">boo</span><span lang="EN-US" style="letter-spacing:.05pt">l</span><span lang="EN-US" style="letter-spacing: .15pt">ean</span><span lang="EN-US"> </span><span style="letter-spacing:.1pt">占用</span><span lang="EN-US" style="letter-spacing:.05pt"> 1 </span><span style="letter-spacing: .1pt">个字节</span><span style="letter-spacing:.2pt">基本数据类型存放在栈里</span><span style="letter-spacing:.25pt">,</span><span style="letter-spacing:.2pt">包装类栈里存放的是对象的引用</span><span style="letter-spacing:.25pt">,</span><span style="letter-spacing:.2pt">即值的地址</span><span style="letter-spacing:.25pt">,</span><span style="letter-spacing:.2pt">而</span><span style="letter-spacing:.15pt">值存放在堆里</span><span style="letter-spacing:.25pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.5pt;line-height:92%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">3</span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; <span style="letter-spacing: .05pt">int </span></span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">与<span lang="EN-US"> integer </span></span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">的区别</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:15.6pt;margin-right:2.45pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;text-indent:.85pt;line-height:184%"><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">I</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ege</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">是</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> i</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">的包装类,</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">则是</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">j</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">v</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">的一种基本数据类型</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">,</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">I</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">ege</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">r </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">变量必须实例化才能</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.55pt">使</span><span style="letter-spacing:.5pt">用</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">当</span><span style="letter-spacing:.25pt"> </span><span lang="EN-US" style="letter-spacing:.35pt">n</span><span lang="EN-US" style="letter-spacing:.3pt">e</span><span lang="EN-US" style="letter-spacing: .4pt">w</span><span lang="EN-US" style="letter-spacing:.25pt"> </span><span style="letter-spacing:.5pt">一个</span><span style="letter-spacing:.25pt"> </span><span lang="EN-US" style="letter-spacing:.15pt">I</span><span lang="EN-US" style="letter-spacing:.35pt">n</span><span lang="EN-US" style="letter-spacing: .2pt">t</span><span lang="EN-US" style="letter-spacing:.3pt">e</span><span lang="EN-US" style="letter-spacing:.35pt">g</span><span lang="EN-US" style="letter-spacing:.3pt">e</span><span lang="EN-US" style="letter-spacing: .2pt">r</span><span lang="EN-US" style="letter-spacing:.25pt"> </span><span style="letter-spacing:.5pt">时</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">实际是生成一个指向此对象的引用</span><span style="letter-spacing: .6pt">,</span><span style="letter-spacing:.5pt">而</span><span style="letter-spacing: .25pt"> </span><span lang="EN-US" style="letter-spacing:.15pt">i</span><span lang="EN-US" style="letter-spacing:.35pt">n</span><span lang="EN-US" style="letter-spacing:.2pt">t</span><span lang="EN-US" style="letter-spacing: .25pt"> </span><span style="letter-spacing:.5pt">是直接存储数</span> <span style="letter-spacing:.25pt">据的值</span><span style="letter-spacing:.3pt">,</span> <span lang="EN-US" style="letter-spacing:.1pt">I</span><span lang="EN-US" style="letter-spacing:.15pt">n</span><span lang="EN-US" style="letter-spacing: .1pt">t</span><span lang="EN-US" style="letter-spacing:.15pt">e</span><span lang="EN-US" style="letter-spacing:.2pt">g</span><span lang="EN-US" style="letter-spacing:.15pt">e</span><span lang="EN-US" style="letter-spacing: .1pt">r </span><span style="letter-spacing:.25pt">默认值是</span><span style="letter-spacing:.1pt"> </span><span lang="EN-US" style="letter-spacing: .15pt">nu</span><span lang="EN-US" style="letter-spacing:.1pt">ll</span><span style="letter-spacing:.3pt">,</span><span style="letter-spacing:.25pt">而</span><span lang="EN-US" style="letter-spacing:.1pt"> i</span><span lang="EN-US" style="letter-spacing:.15pt">n</span><span lang="EN-US" style="letter-spacing: .1pt">t </span><span style="letter-spacing:.2pt">默认值是</span><span lang="EN-US" style="letter-spacing:.1pt"> 0</span></span><span lang="EN-US" style="font-size: 10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:9.15pt;text-indent:.85pt;line-height:92%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">4</span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">谈谈对<span lang="EN-US"> ja</span></span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">va<span style="letter-spacing:.05pt"> </span></span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">多态的理解</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:109%"><span lang="EN-US">&nbsp;</span><span style="text-indent: 0.7pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">同一个消息</span><span style="text-indent: 0.7pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">可以根据发送对象的不同而采用多种不同的行为方式</span><span style="text-indent: 0.7pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">,</span><span style="text-indent: 0.7pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">在执行期间判断所引用的</span><span style="text-indent: 0.7pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);"> <span style="letter-spacing:.5pt">对象的实际</span><span style="letter-spacing:.45pt">类型</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">根据其实际的类型调用其相应的方法</span><span style="letter-spacing: .55pt">。</span></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:.8pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;line-height:185%"><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">作用:消除类型之间的耦合关系。实现多态</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">的必要条件</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">:</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">继承</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">、</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">重写(因为必须调用父类中</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> 存在的方法<span style="letter-spacing: -.05pt">)</span><span style="letter-spacing:-.15pt"> </span><span style="letter-spacing:-.05pt">、</span><span lang="EN-US" style="letter-spacing: -.15pt">&nbsp; </span>父类引用指向子类对象</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.55pt;line-height:92%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">5</span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; <span style="letter-spacing: .05pt">String</span></span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; <span style="letter-spacing: .05pt">StringBuffer</span></span><span style="font-size:10.0pt;line-height: 92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; <span style="letter-spacing: .05pt">StringBuilder </span></span><span style="font-size:10.0pt;line-height: 92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333">区别</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:15.65pt;margin-right:.2pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;text-indent:-.05pt;line-height: 183%"><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">都是字符串类</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">S</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ng</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">类中使用字符数组保存字符串</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">因有</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">na</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">修饰符</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">S</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ng</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">对象是不</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.25pt">可变的</span><span style="letter-spacing:.3pt">,</span><span style="letter-spacing:.25pt">每次对</span><span style="letter-spacing:.1pt"> </span><span lang="EN-US" style="letter-spacing: .15pt">S</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span lang="EN-US" style="letter-spacing:.15pt">r</span><span lang="EN-US" style="letter-spacing:.1pt">i</span><span lang="EN-US" style="letter-spacing: .2pt">ng</span><span lang="EN-US" style="letter-spacing:.1pt"> </span><span style="letter-spacing:.25pt">操作都会生成新的</span><span style="letter-spacing:.1pt"> </span><span lang="EN-US" style="letter-spacing:.15pt">S</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span lang="EN-US" style="letter-spacing: .15pt">r</span><span lang="EN-US" style="letter-spacing:.1pt">i</span><span lang="EN-US" style="letter-spacing:.2pt">ng</span><span lang="EN-US" style="letter-spacing:.1pt"> </span><span style="letter-spacing:.25pt">对象</span><span style="letter-spacing:.3pt">,</span><span style="letter-spacing:.25pt">这样效率低</span><span style="letter-spacing:.3pt">,</span><span style="letter-spacing:.25pt">且浪费内存空间</span><span style="letter-spacing:.3pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.25pt">但</span> <span style="letter-spacing:.35pt">线</span><span style="letter-spacing:.3pt">程安全</span><span style="letter-spacing:.45pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:107%"><span lang="EN-US">&nbsp;</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">S</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">tr</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">i</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">ngBu</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">il</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">d</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">e</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">r</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">和</span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">S</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">tr</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">i</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">ng</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.25pt;">Bu</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">ff</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">e</span><span lang="EN-US" style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;">r </span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">也是使用字符数组保存字符</span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">,</span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">但这两种对象都是可变的</span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">,</span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">即</span><span style="text-indent: 0.5pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);"> <span style="letter-spacing:.45pt">对字符串进行</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .25pt">a</span><span lang="EN-US" style="letter-spacing:.3pt">pp</span><span lang="EN-US" style="letter-spacing:.25pt">e</span><span lang="EN-US" style="letter-spacing:.3pt">nd</span><span lang="EN-US" style="letter-spacing: .15pt"> </span><span style="letter-spacing:.45pt">操作,不会产生新的对</span><span style="letter-spacing:.4pt">象</span><span style="letter-spacing:.45pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.4pt">它们的区别是</span><span style="letter-spacing:.45pt">:</span><span lang="EN-US" style="letter-spacing:.2pt">S</span><span lang="EN-US" style="letter-spacing:.15pt">tr</span><span lang="EN-US" style="letter-spacing: .1pt">i</span><span lang="EN-US" style="letter-spacing:.25pt">ngBu</span><span lang="EN-US" style="letter-spacing:.1pt">ff</span><span lang="EN-US" style="letter-spacing:.2pt">e</span><span lang="EN-US" style="letter-spacing: .15pt">r </span><span style="letter-spacing:.4pt">对方法加</span> <span style="letter-spacing:.45pt">了</span><span style="letter-spacing:.4pt">同步锁</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.4pt">是线程安全的</span><span style="letter-spacing:.5pt">,</span><span lang="EN-US" style="letter-spacing: .25pt">S</span><span lang="EN-US" style="letter-spacing:.2pt">tr</span><span lang="EN-US" style="letter-spacing:.15pt">i</span><span lang="EN-US" style="letter-spacing:.25pt">n</span><span lang="EN-US" style="letter-spacing: .3pt">gB</span><span lang="EN-US" style="letter-spacing:.25pt">u</span><span lang="EN-US" style="letter-spacing:.15pt">il</span><span lang="EN-US" style="letter-spacing:.3pt">d</span><span lang="EN-US" style="letter-spacing: .25pt">e</span><span lang="EN-US" style="letter-spacing:.2pt">r </span><span style="letter-spacing:.4pt">非线程安全</span><span style="letter-spacing:.5pt">。</span></span></p> <p class="MsoNormal" style="line-height:105%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.35pt;text-indent:1.25pt;line-height: 98%;mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height: 98%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">6</span><span style="font-size:10.0pt;line-height:98%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:98%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:98%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">什么是</span><span style="font-size:10.0pt;line-height:98%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">内部类?内部类的作用</span><span lang="EN-US" style="font-size:10.0pt;line-height:98%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:100%"><span lang="EN-US">&nbsp;</span><span style="text-indent: 1.75pt; font-size: 10pt; line-height: 78%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">内部类指在类的内部再定义另一个</span><span style="text-indent: 1.75pt; font-size: 10pt; line-height: 78%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">类</span><span style="text-indent: 1.75pt; font-size: 10pt; line-height: 78%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.45pt;">。</span></p> <p class="MsoNormal" style="line-height:117%"><span lang="EN-US">&nbsp;</span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">内部类的作用:</span><span lang="EN-US" style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">1</span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">)实现多重继承,因为</span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span lang="EN-US" style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.1pt;">j</span><span lang="EN-US" style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.2pt;">ava</span><span lang="EN-US" style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.15pt;"> </span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">中类的继承只</span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">能单继承</span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">,</span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.3pt;">使用内部类可达到多</span><span style="text-indent: 0.9pt; font-size: 10pt; line-height: 184%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);"> <span style="letter-spacing:.45pt">重继承</span><span style="letter-spacing:.5pt">;</span><span lang="EN-US" style="letter-spacing: .25pt">2</span><span style="letter-spacing:.5pt">)</span> <span style="letter-spacing:.45pt">内部类可以很好的实现隐藏</span><span style="letter-spacing: .5pt">,</span><span style="letter-spacing:.45pt">一般非内部类</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.45pt">不允许有</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .3pt">p</span><span lang="EN-US" style="letter-spacing:.2pt">r</span><span lang="EN-US" style="letter-spacing:.15pt">i</span><span lang="EN-US" style="letter-spacing:.25pt">va</span><span lang="EN-US" style="letter-spacing: .2pt">t</span><span lang="EN-US" style="letter-spacing:.25pt">e</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing: .45pt">或</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing:.3pt">p</span><span lang="EN-US" style="letter-spacing: .15pt">r</span><span lang="EN-US" style="letter-spacing:.25pt">o</span><span lang="EN-US" style="letter-spacing:.15pt">t</span><span lang="EN-US" style="letter-spacing:.2pt">ec</span><span lang="EN-US" style="letter-spacing: .15pt">t</span><span lang="EN-US" style="letter-spacing:.2pt">e</span><span lang="EN-US" style="letter-spacing:.25pt">d</span><span lang="EN-US"> </span><span style="letter-spacing:.5pt">权限的</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">但内部类可以</span><span style="letter-spacing:.55pt">;</span><span lang="EN-US" style="letter-spacing:.3pt">3</span><span style="letter-spacing: .55pt">)</span><span style="letter-spacing:.5pt">减少了类文件编译后产生的字节码文件大小</span><span style="letter-spacing:.55pt">;</span></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:2.55pt;margin-bottom: 0cm;margin-left:1.05pt;margin-bottom:.0001pt;text-indent:.65pt;line-height: 185%"><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">内部类在编译完后也会产生</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">.</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ss</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">文件</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">但文件名称是</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">:</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">外部类名称</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">$</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">内部类名称</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">.</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">ss</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">。</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">分</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.5pt">为以</span><span style="letter-spacing:.45pt">下几种</span><span style="letter-spacing:.6pt">:</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:2.8pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;text-indent:.95pt;line-height:183%"><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">1</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">)</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">成员</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">内部类</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">作为外部类的一个成员存在</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">与外部类的属性</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">、</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">方法并列</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">成员内部类持</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.35pt">有外部类的引用</span><span style="letter-spacing:.4pt">,</span><span style="letter-spacing:.35pt">成员内部类不能定义</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .2pt">s</span><span lang="EN-US" style="letter-spacing:.15pt">t</span><span lang="EN-US" style="letter-spacing:.2pt">a</span><span lang="EN-US" style="letter-spacing:.15pt">t</span><span lang="EN-US" style="letter-spacing: .1pt">i</span><span lang="EN-US" style="letter-spacing:.2pt">c</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing: .35pt">变量和方法</span><span style="letter-spacing:.4pt">。</span><span style="letter-spacing:.35pt">应用场合</span><span style="letter-spacing:.4pt">:</span><span style="letter-spacing:.35pt">每一个</span><span style="letter-spacing:.3pt">外部类都需要</span> <span style="letter-spacing:.35pt">一个内</span><span style="letter-spacing:.3pt">部类实例</span><span style="letter-spacing:.4pt">,</span> <span style="letter-spacing:.3pt">内部类离不开外部类存在</span><span style="letter-spacing:.4pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:0cm;margin-bottom:0cm; margin-left:.7pt;margin-bottom:.0001pt;text-indent:.55pt;line-height:184%"><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">2</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">)</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">静态内部类</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">内部类以</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> s</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">声明</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">其他类可通过外部类</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">.</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">内部类来访问</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">。</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">特点</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">:</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">不会持</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.2pt">有外部类的引用</span><span style="letter-spacing:.25pt">,</span><span style="letter-spacing:.2pt">可以访问外部类的静态变量</span><span style="letter-spacing:.25pt">,</span><span style="letter-spacing:.2pt">若要访问成员变量须通过外部类的实</span><span style="letter-spacing:.15pt">例访问</span><span style="letter-spacing:.25pt">。</span> <span style="letter-spacing:.4pt">应用场合:内部类不需要外部类的实例,仅为外部类提</span><span style="letter-spacing:.35pt">供或逻辑上属于外部类</span><span style="letter-spacing:.4pt">,</span><span style="letter-spacing:.35pt">逻辑上可单</span> <span style="letter-spacing:.4pt">独存在。设计的意义:加强了类的封装性(静态内部类</span><span style="letter-spacing:.35pt">是外部类的子行为或子属性</span><span style="letter-spacing: .4pt">,</span><span style="letter-spacing:.35pt">两者保</span> <span style="letter-spacing:.3pt">持着一定关系)</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.3pt">,提高了代码的可读性</span><span style="letter-spacing:.25pt">(相关联的代码放在一起</span><span style="letter-spacing: .3pt">)。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.4pt;line-height:97%"><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">3</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">)</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">匿名内部类</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">在整个操作中只使</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">用一次</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">没有名字</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">使用</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ne</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">w</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">创建</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">没有具体位置</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">。</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:114%"><span lang="EN-US">&nbsp;</span><span lang="EN-US" style="text-indent: 0.75pt; font-size: 10pt; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); position: relative; top: -1.5pt; letter-spacing: 0.35pt;">4</span><span style="text-indent: 0.75pt; font-size: 10pt; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); position: relative; top: -1.5pt; letter-spacing: 0.65pt;">)</span><span style="text-indent: 0.75pt; font-size: 10pt; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); position: relative; top: -1.5pt; letter-spacing: 0.5pt;">局部内部类</span><span style="text-indent: 0.75pt; font-size: 10pt; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); position: relative; top: -1.5pt; letter-spacing: 0.65pt;">,</span><span style="text-indent: 0.75pt; font-size: 10pt; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); position: relative; top: -1.5pt; letter-spacing: 0.5pt;">在方法内或</span><span style="text-indent: 0.75pt; font-size: 10pt; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); position: relative; top: -1.5pt; letter-spacing: 0.45pt;">是代码块中定义类</span><span style="text-indent: 0.75pt; font-size: 10pt; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); position: relative; top: -1.5pt; letter-spacing: 0.65pt;">,</span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:.75pt;line-height:18.1pt; mso-line-height-rule:exactly"><span lang="EN-US">&nbsp;</span><span lang="EN-US" style="text-indent: 1.15pt; font-size: 10pt; line-height: 78%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);">7</span><span style="text-indent: 1.15pt; font-size: 10pt; line-height: 78%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: -0.05pt;">、</span><span lang="EN-US" style="text-indent: 1.15pt; font-size: 10pt; line-height: 78%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: -0.65pt;">&nbsp; </span><span style="text-indent: 1.15pt; font-size: 10pt; line-height: 78%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);">抽象类和接口区别</span></p> <p class="MsoNormal" style="margin-top:15.75pt;margin-right:2.9pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;line-height:184%"><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:red;letter-spacing:.55pt">抽象类</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">在类前面须用</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">tr</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">ac</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">关键字修饰,一般</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">至少包含一个抽象方法</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">抽象方法指只有</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.4pt">声明,用关键字</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .25pt">ab</span><span lang="EN-US" style="letter-spacing:.2pt">s</span><span lang="EN-US" style="letter-spacing:.15pt">tr</span><span lang="EN-US" style="letter-spacing:.25pt">a</span><span lang="EN-US" style="letter-spacing: .2pt">c</span><span lang="EN-US" style="letter-spacing:.15pt">t </span><span style="letter-spacing:.4pt">修饰,没有具体的</span><span style="letter-spacing:.35pt">实现的方法</span><span style="letter-spacing:.4pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.35pt">因抽象类中含有无具体实现的方</span> <span style="letter-spacing:.4pt">法,固不能用抽象类创建对象。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.4pt">当然如果只是用</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .25pt">ab</span><span lang="EN-US" style="letter-spacing:.15pt">s</span><span lang="EN-US" style="letter-spacing:.1pt">tr</span><span lang="EN-US" style="letter-spacing:.2pt">a</span><span lang="EN-US" style="letter-spacing: .15pt">c</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing: .35pt">修饰类而无具体实现</span><span style="letter-spacing:.4pt">,</span><span style="letter-spacing:.35pt">也是抽象</span></span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> </div><p> <span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif; mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-ansi-language: EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;mso-no-proof:yes"><br clear="all" style="page-break-before:always;mso-break-type:section-break"> </span> </p><div class="WordSection2"> <p class="MsoNormal" style="margin-top:9.55pt;margin-right:5.35pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;line-height:183%"><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">类。抽象类也可以有</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">成员变量和普通的成员方法</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">。</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">抽象方法必须为</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">pub</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">c </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">或</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">p</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">o</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">ec</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">d</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">(若</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.35pt">为</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .2pt">p</span><span lang="EN-US" style="letter-spacing:.15pt">r</span><span lang="EN-US" style="letter-spacing:.1pt">i</span><span lang="EN-US" style="letter-spacing:.2pt">va</span><span lang="EN-US" style="letter-spacing: .15pt">t</span><span lang="EN-US" style="letter-spacing:.2pt">e</span><span style="letter-spacing:.35pt">,不能被子类继承,子类无法实现该方</span><span style="letter-spacing: .3pt">法</span><span style="letter-spacing:.35pt">)。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.3pt">若一个类继承一个抽象类</span><span style="letter-spacing:.35pt">,</span><span style="letter-spacing:.3pt">则必须</span> <span style="letter-spacing:.5pt">实现父类中所有的抽象方法,若子类没有实现</span><span style="letter-spacing:.45pt">父类的抽象方法</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.45pt">则也应该定义为抽象类</span><span style="letter-spacing:.5pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:107%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.1pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;line-height:184%"><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:red;letter-spacing:.45pt">接口</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">用关键字</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> i</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">rf</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ace</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">修饰,接口也可以含有变量和方法,接口中</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">的变量会被隐式指定为</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span lang="EN-US" style="letter-spacing: .2pt">pub</span><span lang="EN-US" style="letter-spacing:.1pt">li</span><span lang="EN-US" style="letter-spacing:.2pt">c</span><span lang="EN-US" style="letter-spacing:.15pt"> st</span><span lang="EN-US" style="letter-spacing: .2pt">a</span><span lang="EN-US" style="letter-spacing:.15pt">t</span><span lang="EN-US" style="letter-spacing:.1pt">i</span><span lang="EN-US" style="letter-spacing:.2pt">c</span><span lang="EN-US" style="letter-spacing: .15pt"> f</span><span lang="EN-US" style="letter-spacing:.1pt">i</span><span lang="EN-US" style="letter-spacing:.2pt">na</span><span lang="EN-US" style="letter-spacing:.1pt">l</span><span lang="EN-US" style="letter-spacing: .15pt"> </span><span style="letter-spacing:.3pt">变量</span><span style="letter-spacing:.35pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.3pt">方法会被隐式的指定为</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .2pt">pub</span><span lang="EN-US" style="letter-spacing:.1pt">li</span><span lang="EN-US" style="letter-spacing:.15pt">c ab</span><span lang="EN-US" style="letter-spacing:.1pt">str</span><span lang="EN-US" style="letter-spacing: .15pt">ac</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span style="letter-spacing:.35pt">,</span><span style="letter-spacing:.25pt">接口中的所有方法均不</span> <span style="letter-spacing:.4pt">能有具体的实现,即接口中的方法都必须为抽</span><span style="letter-spacing:.35pt">象方法</span><span style="letter-spacing:.4pt">。</span><span style="letter-spacing:.35pt">若一个非抽象类实现某个接口</span><span style="letter-spacing: .4pt">,</span><span style="letter-spacing:.35pt">必须</span> <span style="letter-spacing:.45pt">实现该接口中所有</span><span style="letter-spacing:.4pt">的方法</span><span style="letter-spacing:.45pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:104%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.25pt;text-indent:1.65pt;line-height: 97%"><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:red;letter-spacing:.25pt">区别</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:red;letter-spacing:.4pt">:</span><span lang="EN-US" style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:14.45pt;text-indent:1.75pt;line-height: 18.05pt;mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.35pt">1</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.55pt">)</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.5pt">抽象类可以提</span><span style="font-size: 10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.45pt">供成员方法实现的细节</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.55pt">,</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.45pt">而接口只能存在抽象方法</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.55pt">;</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.35pt;text-indent:1.3pt;line-height:90%"><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">2</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">)抽象类的成员变量可以是各种类型,而接口中成员变量只能是</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">pub</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> st</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">类型</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">;</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.35pt;text-indent:1.4pt;line-height:17.95pt; mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.3pt">3</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.5pt">)接口中不能含有静态方法及静态代码块,而抽象类可以有静态</span><span style="font-size: 10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.45pt">方法和静态代码块</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.5pt">;</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.2pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">4</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">)一个类只能继承一个抽象类,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">用</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> e</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">xt</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">end</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">来继承</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">却可以实现多个接口</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">用</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">m</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">p</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">m</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">en</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">ts</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> </span><span style="font-size:10.0pt; line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.4pt">来实</span><span style="font-size:10.0pt; line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.35pt">现接口</span><span style="font-size:10.0pt; line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.45pt">。</span><span lang="EN-US" style="font-size: 10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:111%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.35pt;text-indent:1.15pt;line-height: 78%;mso-outline-level:2"><span lang="EN-US" style="font-size:10.0pt;line-height: 78%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333">7.1</span><span style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:-.1pt">、</span><span lang="EN-US" style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:-.6pt">&nbsp; </span><span style="font-size:10.0pt; line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">抽象类的意义</span><span lang="EN-US" style="font-size:10.0pt; line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:111%"><span lang="EN-US">&nbsp;</span><span style="text-indent: 0.05pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">抽象类是用来提供子类的通用性,用来创建继承</span><span style="text-indent: 0.05pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">层级里子类的模板</span><span style="text-indent: 0.05pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">,</span><span style="text-indent: 0.05pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">减少代码编写</span><span style="text-indent: 0.05pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.4pt;">,</span><span style="text-indent: 0.05pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: 0.35pt;">有利于</span><span style="text-indent: 0.05pt; font-size: 10pt; line-height: 185%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);"> <span style="letter-spacing:.4pt">代码</span><span style="letter-spacing:.35pt">规范化</span><span style="letter-spacing:.5pt">。</span></span></p> </div><p>&nbsp;<br></p><div class="WordSection3"> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.15pt;line-height:78%; mso-outline-level:2"><span lang="EN-US" style="font-size:10.0pt;line-height:78%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">7.2</span><span style="font-size:10.0pt;line-height:78%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">抽象类与</span><span style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">接口的应用场景</span><span lang="EN-US" style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:15.8pt;margin-right:.55pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;text-indent:-.05pt;line-height: 185%"><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">抽象</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">类的应用场景</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">:</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span lang="EN-US" style="letter-spacing: .25pt">1</span><span style="letter-spacing:.5pt">)</span><span style="letter-spacing:.4pt">规范了一组公共的方法</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.4pt">与状态无关</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.4pt">可以共享的</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.4pt">无需子类分别</span> <span style="letter-spacing:.5pt">实现</span><span style="letter-spacing:.55pt">;</span><span style="letter-spacing:.5pt">而另一些方法却需要各个子类根据自己特定状态来实现特定功能</span><span style="letter-spacing:.55pt">;</span></span><span lang="EN-US" style="font-size: 10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:105%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="line-height:105%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:.65pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:.5pt;line-height:185%"><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">2</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">)定义一组接口,但不强迫每个实现类都必</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">须实现所有的方法</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">可用抽象类定义一组方法</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.4pt">体可以是空方法体</span><span style="letter-spacing:.45pt">,</span> <span style="letter-spacing:.4pt">由子类选择自己感兴趣的</span><span style="letter-spacing:.35pt">方法来覆盖</span><span style="letter-spacing:.45pt">;</span></span></p><p class="MsoNormal" style="margin-top:4.3pt;margin-right:.65pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:.5pt;line-height:185%">&nbsp;<br></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.15pt;line-height:99%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.1pt">7.</span><span lang="EN-US" style="font-size:10.0pt; line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.05pt">3</span><span style="font-size:10.0pt; line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.2pt">、</span><span lang="EN-US" style="font-size: 10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">抽象类是否可以没有方法和属性?</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:100%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:.9pt;line-height:78%"><span style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">可</span><span style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">以</span><span lang="EN-US" style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:122%"><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="line-height:122%"><span lang="EN-US"><br></span><span lang="EN-US" style="text-indent: 1.15pt; font-size: 10pt; line-height: 79%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);">7.4</span><span style="text-indent: 1.15pt; font-size: 10pt; line-height: 79%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: -0.05pt;">、</span><span lang="EN-US" style="text-indent: 1.15pt; font-size: 10pt; line-height: 79%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51); letter-spacing: -0.9pt;">&nbsp; </span><span style="text-indent: 1.15pt; font-size: 10pt; line-height: 79%; font-family: 微软雅黑, sans-serif; color: rgb(51, 51, 51);">接口的意义</span></p> <p class="MsoNormal" style="margin-top:15.65pt;margin-right:.65pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;text-indent:.9pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">1</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">)</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">有</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">利于代码的规范</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">对于大型项目</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">对一些接口进行定义</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">可以给开发人员一个清晰的</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.5pt">指示</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.5pt">防止开</span><span style="letter-spacing:.45pt">发人员随意命名和代码混乱</span><span style="letter-spacing: .55pt">,</span><span style="letter-spacing:.45pt">影响开发效率</span><span style="letter-spacing:.55pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.25pt;margin-right:.75pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;text-indent:.45pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">2</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">)</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">有利于代码维护和</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">扩展</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">当前类不能满足要求时</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">不需要重新设计类</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">只需要重新写了</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.45pt">个类实现对</span><span style="letter-spacing:.4pt">应的方法</span><span style="letter-spacing:.45pt">。<span lang="EN-US"><o:p></o:p></span></span></span></p> <p class="MsoNormal" style="margin-top:4.25pt;margin-right:.75pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;text-indent:.45pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.25pt">3</span><span style="font-size:10.0pt; line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing: .55pt">)</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.45pt">解耦作用</span><span style="font-size: 10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:187%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.45pt">全局变量的定义</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.55pt">,</span><span style="font-size:10.0pt; line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing: .45pt">当发生需求变化时</span><span style="font-size:10.0pt;line-height:187%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.45pt">只需改变接口中的值即可</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.5pt">。</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:.75pt;margin-bottom: 0cm;margin-left:1.7pt;margin-bottom:.0001pt;text-indent:-.95pt;line-height: 187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family: &quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">4</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">)直接看接口,就可以清楚知道具体实现类间的关系,代码交</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">给别人看</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">别人也能立马明</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">白<span style="letter-spacing:-.6pt">。</span></span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> </div><p><span lang="EN-US">&nbsp;</span>&nbsp;<br></p><div class="WordSection4"> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.1pt;line-height:92%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.15pt">8</span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.25pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">泛型中</span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">ex</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">en</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">d</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">和</span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">u</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">p</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">的区别</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:15.55pt;margin-right:0cm;margin-bottom: 0cm;margin-left:1.2pt;margin-bottom:.0001pt;text-indent:.95pt;line-height:185%"><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">&lt;</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">?</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">x</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">nd</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">T</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">&gt;</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.7pt">限定参数类型的上界</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.75pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.7pt">参数类型必须是</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">T</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.7pt">或</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">T</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.7pt">的子类型</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.75pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.7pt">但对于</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">L</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">&lt;</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">?</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.2pt">e</span><span style="letter-spacing:.15pt">xt</span><span style="letter-spacing:.2pt">end</span><span style="letter-spacing:.15pt">s </span><span style="letter-spacing:.2pt">T</span><span style="letter-spacing:.15pt"> </span><span style="letter-spacing:.25pt">&gt;</span></span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">,不能通过</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">add</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">()</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">来加入元素,因为不知道</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">&lt;</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">? </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">x</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">end</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> T </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">&gt;</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">是</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> T </span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">的哪一种子类</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">;</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.0pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;text-indent:1.3pt;line-height:186%"><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">&lt;</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">?</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">up</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r </span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">T</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">&gt;</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">限定参数类型的下界</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">参数类型必须是</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">T</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">或</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">T</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">的父类型</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">不能能过</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">g</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">t()</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">获取</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.5pt">元素</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">因为不知道哪个超类</span><span style="letter-spacing:.6pt">;</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:104%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.1pt;line-height:99%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.15pt">9</span><span style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.35pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">父类的静态方法能否被子类重写?静态属性和静态方法是否可以被继承?</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:100%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:4.9pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;text-indent:.05pt;line-height:180%"><span style="font-size:10.0pt;line-height:180%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">父类的静态方法和属性不能被子类重写,</span><span style="font-size:10.0pt;line-height:180%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">但子类可以继承父类静态方法和属性</span><span style="font-size:10.0pt;line-height:180%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:180%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">如父类和子</span><span style="font-size:10.0pt;line-height:180%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.85pt">类都有同名同参同返回值的静态方法</span><span style="letter-spacing:.3pt"> </span><span lang="EN-US" style="letter-spacing: .4pt">s</span><span lang="EN-US" style="letter-spacing:.55pt">ho</span><span lang="EN-US" style="letter-spacing:.65pt">w</span><span lang="EN-US" style="letter-spacing:.3pt">()</span><span style="letter-spacing:.85pt">,声明的实例</span><span style="letter-spacing:.3pt"> </span><span lang="EN-US" style="letter-spacing: .45pt">F</span><span lang="EN-US" style="letter-spacing:.5pt">a</span><span lang="EN-US" style="letter-spacing:.35pt">t</span><span lang="EN-US" style="letter-spacing:.55pt">h</span><span lang="EN-US" style="letter-spacing: .5pt">e</span><span lang="EN-US" style="letter-spacing:.35pt">r</span><span lang="EN-US" style="letter-spacing:.3pt"> f</span><span lang="EN-US" style="letter-spacing:.5pt">a</span><span lang="EN-US" style="letter-spacing: .35pt">t</span><span lang="EN-US" style="letter-spacing:.55pt">h</span><span lang="EN-US" style="letter-spacing:.5pt">e</span><span lang="EN-US" style="letter-spacing:.35pt">r</span><span lang="EN-US" style="letter-spacing: .3pt"> </span><span lang="EN-US" style="letter-spacing:.65pt">=</span><span lang="EN-US" style="letter-spacing:.3pt"> </span><span lang="EN-US" style="letter-spacing:.55pt">n</span><span lang="EN-US" style="letter-spacing: .45pt">e</span><span lang="EN-US" style="letter-spacing:.6pt">w</span><span lang="EN-US" style="letter-spacing:.3pt"> </span><span lang="EN-US" style="letter-spacing:.45pt">S</span><span lang="EN-US" style="letter-spacing: .5pt">on</span><span lang="EN-US" style="letter-spacing:.25pt">()</span><span lang="EN-US" style="letter-spacing:.2pt">;</span><span lang="EN-US"> <span style="letter-spacing:.15pt">(</span><span style="letter-spacing:.25pt">S</span><span style="letter-spacing:.3pt">on</span><span style="letter-spacing:.15pt"> </span><span style="letter-spacing:.25pt">ex</span><span style="letter-spacing:.2pt">t</span><span style="letter-spacing:.25pt">e</span><span style="letter-spacing:.3pt">nd</span><span style="letter-spacing:.2pt">s</span><span style="letter-spacing:.15pt"> </span><span style="letter-spacing:.25pt">Fa</span><span style="letter-spacing:.2pt">t</span><span style="letter-spacing:.3pt">h</span><span style="letter-spacing:.25pt">e</span><span style="letter-spacing:.2pt">r</span><span style="letter-spacing:.15pt">)</span></span><span style="letter-spacing:.45pt">,会调用</span><span lang="EN-US" style="letter-spacing: .15pt"> f</span><span lang="EN-US" style="letter-spacing:.25pt">a</span><span lang="EN-US" style="letter-spacing:.15pt">t</span><span lang="EN-US" style="letter-spacing:.25pt">h</span><span lang="EN-US" style="letter-spacing: .2pt">e</span><span lang="EN-US" style="letter-spacing:.15pt">r </span><span style="letter-spacing:.4pt">对象的静态方法</span><span style="letter-spacing:.45pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.4pt">静态是指在编译时就会分配内存</span> <span style="letter-spacing: .45pt">且一直存在</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">跟对</span><span style="letter-spacing:.4pt">象实例无关</span><span style="letter-spacing:.55pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="line-height:114%"><span lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.65pt;line-height:78%; mso-outline-level:2"><span lang="EN-US" style="font-size:10.0pt;line-height:78%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333">10</span><span style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:-.05pt">、</span><span lang="EN-US" style="font-size:10.0pt;line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:-.6pt">&nbsp; </span><span style="font-size:10.0pt; line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">进程和线程的区别</span><span lang="EN-US" style="font-size:10.0pt; line-height:78%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:15.7pt;text-indent:.8pt;line-height:97%"><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">进程:具有一定独立功能的程序,是系统进</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">行资源分配和调度运行的基本单位</span><span style="font-size:10.0pt;line-height:97%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">。</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.25pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:.05pt;line-height:186%"><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">线程</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">:</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">进程的一个实体</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">是</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">CP</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">U</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt"> </span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">调度的苯单位</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">也是进程中执行运算的最小单位</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">即执行</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.4pt">处理机调度的基本单位,如果把进程理解为逻辑</span><span style="letter-spacing:.35pt">上操作系统所完成的任务</span><span style="letter-spacing: .4pt">,</span><span style="letter-spacing:.35pt">线程则表示完成</span> <span style="letter-spacing:.5pt">该</span><span style="letter-spacing:.45pt">任务的许多可能的子任务之一</span><span style="letter-spacing:.55pt">。<span lang="EN-US"><o:p></o:p></span></span></span></p> <p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.25pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:.05pt;line-height:186%"><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">关系:一个进程可有多个线程,至少一个;一个</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">线程只能属于一个进程</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">。</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">同一进程的所有线</span><span lang="EN-US" style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p> </div><p> <span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif; mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-ansi-language: EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;mso-no-proof:yes"><br clear="all" style="page-break-before:always;mso-break-type:section-break"> </span> </p><p class="MsoNormal" style="margin-top:11.35pt;text-indent:.75pt;line-height: 79%"><span style="font-size:10.0pt;line-height:79%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">程共享该进程的所有资源</span><span style="font-size:10.0pt;line-height:79%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">。</span><span lang="EN-US" style="font-size:10.0pt;line-height:79%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:79%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">不同进程的线程间要利用消息通信方式实现同步</span><span style="font-size:10.0pt;line-height:79%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">。</span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;margin-right:.65pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:.9pt;line-height:186%"><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">区别</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">:</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">进程有独立的地址空间</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">而多个线程共享内存</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">;</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">进程具有一个独立功能的程序</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">线程</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.55pt">不</span><span style="letter-spacing:.5pt">能独立运行</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">必须依存于应用程序中</span><span style="letter-spacing:.6pt">;</span></span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.65pt;line-height:99%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.25pt">11</span><span style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.6pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; <span style="letter-spacing: .15pt">fi</span><span style="letter-spacing:.3pt">n</span><span style="letter-spacing:.25pt">a</span><span style="letter-spacing:.15pt">l</span></span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">,</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">ll</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">y</span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">,</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ze </span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">的区别</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:14.35pt;margin-right:.3pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;text-indent:.15pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">na</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">:</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">变量</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">、</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">类</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">、</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">方法的修饰符</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">被</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">na</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">修饰的类不能被继承</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">变量或方法被</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">修饰</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.45pt">则不能被修</span><span style="letter-spacing:.4pt">改和重写</span><span style="letter-spacing:.45pt">。<span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top:14.35pt;margin-right:.3pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;text-indent:.15pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">f</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">na</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ll</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">y</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.65pt">:</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">异常处理时提供</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">fi</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">na</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ll</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">y</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt"> </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">块来执行清除操作</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.65pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">不管有没有异常抛出</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.65pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">此处代码都会</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.25pt">被执行</span><span style="letter-spacing:.3pt">。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.25pt">如果</span><span lang="EN-US" style="letter-spacing:.1pt"> tr</span><span lang="EN-US" style="letter-spacing:.15pt">y</span><span lang="EN-US" style="letter-spacing: .1pt"> </span><span style="letter-spacing:.25pt">语句块中包含</span><span lang="EN-US" style="letter-spacing:.1pt"> r</span><span lang="EN-US" style="letter-spacing: .15pt">e</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span lang="EN-US" style="letter-spacing:.2pt">u</span><span lang="EN-US" style="letter-spacing:.1pt">r</span><span lang="EN-US" style="letter-spacing: .2pt">n</span><span lang="EN-US" style="letter-spacing:.1pt"> </span><span style="letter-spacing:.25pt">语句</span><span style="letter-spacing:.3pt">,</span><span lang="EN-US" style="letter-spacing:.1pt">fi</span><span lang="EN-US" style="letter-spacing:.2pt">n</span><span lang="EN-US" style="letter-spacing: .15pt">a</span><span lang="EN-US" style="letter-spacing:.1pt">ll</span><span lang="EN-US" style="letter-spacing:.15pt">y</span><span lang="EN-US" style="letter-spacing:.1pt"> </span><span style="letter-spacing:.25pt">语句块是在</span><span lang="EN-US" style="letter-spacing:.1pt"> re</span><span lang="EN-US" style="letter-spacing:.05pt">t</span><span lang="EN-US" style="letter-spacing: .15pt">u</span><span lang="EN-US" style="letter-spacing:.05pt">r</span><span lang="EN-US" style="letter-spacing:.15pt">n</span><span lang="EN-US" style="letter-spacing:.1pt"> </span><span style="letter-spacing:.2pt">之后运行</span><span style="letter-spacing:.3pt">;</span></span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.25pt;margin-right:.3pt;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:.15pt;line-height:187%"><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">f</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">z</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.65pt">:</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">O</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">j</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">类中定义的方法</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.65pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">若子类覆盖了</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">f</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">z</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">()</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">方</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">法</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.65pt">,</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">在在垃圾收集器将对象</span><span style="font-size:10.0pt;line-height:187%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.5pt">从内存中清除</span><span style="letter-spacing:.45pt">前</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">会执行该方法</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">确定对象是否会被回收</span><span style="letter-spacing:.55pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.65pt;line-height:99%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.35pt">12</span><span style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.65pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">序列化</span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">Se</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">z</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt"> </span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">和</span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">P</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.6pt">的区别</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:14.4pt;margin-right:.65pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;line-height:186%"><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">序列化:将一个对象转换成可存储或可传输的状</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">态</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">序列化后的对象可以在网络上传输</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">也</span><span style="font-size:10.0pt;line-height:186%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.5pt">可以存储到本地</span><span style="letter-spacing:.6pt">,</span><span style="letter-spacing:.5pt">或实现跨进程传输</span><span style="letter-spacing:.55pt">;</span></span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;margin-right:0cm;margin-bottom:0cm; margin-left:.8pt;margin-bottom:.0001pt;line-height:183%"><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">为什么要进行序列化</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">:</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">开发过程中</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">我们需要将对象的引用传给其他</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">v</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">y</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">或</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">fr</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">ag</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">m</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">en</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> </span><span style="font-size:10.0pt; line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.3pt">使用时,需要将这些对象放到一个</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> I</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">en</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">或</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">Bund</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">中</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">再进行传递</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">而</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">I</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">en</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">t </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">或</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">Bund</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> </span><span style="font-size:10.0pt; line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.5pt">只</span><span style="font-size:10.0pt; line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333;letter-spacing:.45pt">能识别基本数据类型和被序列化的类型</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">。</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.2pt;line-height:18.25pt; mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.35pt">Se</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.25pt">r</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.2pt">i</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.2pt">li</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.3pt">z</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.35pt">a</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.4pt">b</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.2pt">l</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.35pt">e</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.6pt">:表示将一个</span><span style="font-size: 10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.55pt">对象转换成可存储或可传输的状态</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.6pt">。</span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="line-height:110%"><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.35pt;margin-bottom: 0cm;margin-left:.9pt;margin-bottom:.0001pt;text-indent:.65pt;line-height:185%"><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">Pa</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ab</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">:</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">与</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">Se</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">ri</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">z</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ab</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">实现的效果相同</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">也是将一</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">个对象转换成可传输的状态</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">但它</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.55pt">的实现原理是将一个完整的对象进行分解,分解后</span><span style="letter-spacing:.5pt">的每一部分都是</span><span style="letter-spacing:.2pt"> </span><span lang="EN-US" style="letter-spacing:.15pt">I</span><span lang="EN-US" style="letter-spacing:.3pt">n</span><span lang="EN-US" style="letter-spacing: .15pt">t</span><span lang="EN-US" style="letter-spacing:.25pt">e</span><span lang="EN-US" style="letter-spacing:.3pt">n</span><span lang="EN-US" style="letter-spacing:.15pt">t</span><span lang="EN-US" style="letter-spacing: .2pt"> </span><span style="letter-spacing:.5pt">所支持的数据类</span> <span style="letter-spacing:.45pt">型</span><span style="letter-spacing:.55pt">,</span><span style="letter-spacing:.45pt">这样实现传</span><span style="letter-spacing:.4pt">递对象的功能</span><span style="letter-spacing:.55pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;margin-right:0cm;margin-bottom:0cm; margin-left:.8pt;margin-bottom:.0001pt;text-indent:.75pt;line-height:183%"><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">P</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">ce</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">实现序列化的重要方法:序列化功能是由</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">w</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">eT</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">o</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">P</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ce</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">完成</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">通过</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">P</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ce</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">中</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">的</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">w</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">rit</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">方法来完成;反序列化由</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">CR</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">E</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">A</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">T</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">O</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">R </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">完成</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">内部标明了如何创建序列化对象及数级</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">,</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.35pt">通过</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .25pt">P</span><span lang="EN-US" style="letter-spacing:.2pt">a</span><span lang="EN-US" style="letter-spacing:.15pt">r</span><span lang="EN-US" style="letter-spacing:.2pt">ce</span><span lang="EN-US" style="letter-spacing: .1pt">l</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing:.35pt">的</span><span lang="EN-US" style="letter-spacing: .15pt"> r</span><span lang="EN-US" style="letter-spacing:.2pt">ea</span><span lang="EN-US" style="letter-spacing:.25pt">d</span><span lang="EN-US" style="letter-spacing:.15pt"> </span><span style="letter-spacing:.35pt">方法完成</span><span style="letter-spacing:.4pt">;</span><span style="letter-spacing:.35pt">内容描述功能由</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .25pt">d</span><span lang="EN-US" style="letter-spacing:.2pt">esc</span><span lang="EN-US" style="letter-spacing:.15pt">r</span><span lang="EN-US" style="letter-spacing:.1pt">i</span><span lang="EN-US" style="letter-spacing: .25pt">b</span><span lang="EN-US" style="letter-spacing:.2pt">e</span><span lang="EN-US" style="letter-spacing:.25pt">Con</span><span lang="EN-US" style="letter-spacing:.15pt">t</span><span lang="EN-US" style="letter-spacing: .2pt">en</span><span lang="EN-US" style="letter-spacing:.1pt">t</span><span lang="EN-US" style="letter-spacing:.15pt">s </span><span style="letter-spacing: .3pt">方法完成</span><span style="letter-spacing:.4pt">,</span><span style="letter-spacing:.3pt">一般直接返</span><span lang="EN-US">&nbsp; </span>回<span style="letter-spacing:-.05pt"> </span><span lang="EN-US">0 </span><span style="letter-spacing:-2.65pt">。</span></span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;margin-right:5.35pt;margin-bottom: 0cm;margin-left:.85pt;margin-bottom:.0001pt;text-indent:.6pt;line-height:184%"><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">区别</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">:</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">Se</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">za</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">在序列化时会产生大量临时变量</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">,</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">引起频繁</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">GC</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">。</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">Se</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">li</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">z</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">e </span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">本质上使</span><span style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.45pt">用了反射,序列化过程慢。</span><span lang="EN-US">&nbsp; <span style="letter-spacing: .3pt">P</span><span style="letter-spacing:.25pt">a</span><span style="letter-spacing:.2pt">r</span><span style="letter-spacing:.25pt">ce</span><span style="letter-spacing:.15pt">l</span><span style="letter-spacing:.25pt">a</span><span style="letter-spacing:.3pt">b</span><span style="letter-spacing:.15pt">l</span><span style="letter-spacing:.25pt">e</span><span style="letter-spacing:.15pt"> </span></span><span style="letter-spacing:.45pt">不能将数据存储在</span><span style="letter-spacing:.4pt">磁盘上</span><span style="letter-spacing:.45pt">,</span><span style="letter-spacing:.4pt">在外界变化时</span><span style="letter-spacing:.45pt">,</span><span style="letter-spacing:.4pt">它不能</span> <span style="letter-spacing:.45pt">很好的保证数据的</span><span style="letter-spacing: .4pt">持续性</span><span style="letter-spacing:.45pt">。</span></span><span lang="EN-US" style="font-size:10.0pt;line-height:184%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.25pt;margin-right:5.2pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;text-indent:.1pt;line-height:185%"><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">选择原则</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">:</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">若仅在内存中使用</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">如</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">ct</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">v</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">y</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">\s</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">v</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">c</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">间传递对象</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">优先使用</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">Pa</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">rc</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.3pt">b</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">l</span><span lang="EN-US" style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">e</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">,</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">它</span><span style="font-size:10.0pt;line-height:185%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.2pt">性能高。</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.2pt">若是持久化操作,优先</span><span style="letter-spacing:.15pt">使用</span><span lang="EN-US" style="letter-spacing:.1pt"> Se</span><span lang="EN-US" style="letter-spacing:.05pt">ri</span><span lang="EN-US" style="letter-spacing: .1pt">a</span><span lang="EN-US" style="letter-spacing:.05pt">liz</span><span lang="EN-US" style="letter-spacing:.1pt">ab</span><span lang="EN-US" style="letter-spacing:.05pt">l</span><span lang="EN-US" style="letter-spacing: .1pt">e</span></span><span lang="EN-US" style="font-size:10.0pt;line-height:185%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.35pt;margin-right:5.55pt;margin-bottom: 0cm;margin-left:.8pt;margin-bottom:.0001pt;line-height:183%"><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">注意:静态成员变量属于类,不属于对象,固不会参与序列化的过</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">程</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">;</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">用</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt"> tr</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">s</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">t </span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">关键字</span><span style="font-size:10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span style="letter-spacing:.45pt">编辑的成员变量不会参与序列化过程</span><span style="letter-spacing:.5pt">;</span><span style="letter-spacing:.45pt">可以通过重写</span><span style="letter-spacing:.15pt"> </span><span lang="EN-US" style="letter-spacing: .35pt">w</span><span lang="EN-US" style="letter-spacing:.2pt">r</span><span lang="EN-US" style="letter-spacing:.15pt">i</span><span lang="EN-US" style="letter-spacing:.2pt">t</span><span lang="EN-US" style="letter-spacing: .3pt">e</span><span lang="EN-US" style="letter-spacing:.4pt">O</span><span lang="EN-US" style="letter-spacing:.3pt">b</span><span lang="EN-US" style="letter-spacing:.15pt">j</span><span lang="EN-US" style="letter-spacing: .25pt">e</span><span lang="EN-US" style="letter-spacing:.2pt">c</span><span lang="EN-US" style="letter-spacing:.15pt">t()</span><span style="letter-spacing: .4pt">和</span><span lang="EN-US" style="letter-spacing:.15pt"> r</span><span lang="EN-US" style="letter-spacing:.25pt">e</span><span lang="EN-US" style="letter-spacing:.2pt">a</span><span lang="EN-US" style="letter-spacing: .25pt">d</span><span lang="EN-US" style="letter-spacing:.35pt">O</span><span lang="EN-US" style="letter-spacing:.25pt">b</span><span lang="EN-US" style="letter-spacing:.1pt">j</span><span lang="EN-US" style="letter-spacing: .25pt">e</span><span lang="EN-US" style="letter-spacing:.2pt">c</span><span lang="EN-US" style="letter-spacing:.15pt">t()</span><span style="letter-spacing: .4pt">方法来</span> <span style="letter-spacing:.45pt">重写系统默认的序列化和反序列化</span><span style="letter-spacing:.55pt">。</span></span><span lang="EN-US" style="font-size: 10.0pt;line-height:183%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.3pt;text-indent:1.65pt;line-height:99%; mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">13</span><span style="font-size:10.0pt;line-height:99%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.05pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; </span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.05pt">谈谈对<span lang="EN-US"> ko</span></span><span lang="EN-US" style="font-size:10.0pt; line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">tlin<span style="letter-spacing:.05pt"> </span></span><span style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333">的理解</span><span lang="EN-US" style="font-size:10.0pt;line-height:99%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:14.3pt;margin-right:0cm;margin-bottom: 0cm;margin-left:.75pt;margin-bottom:.0001pt;text-indent:-.05pt;line-height: 182%"><span style="font-size:10.0pt;line-height:182%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.45pt">特点</span><span style="font-size:10.0pt;line-height:182%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">:</span><span style="font-size:10.0pt;line-height:182%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span lang="EN-US" style="letter-spacing: .3pt">1</span><span style="letter-spacing:.55pt">)</span><span style="letter-spacing:.45pt">代码量少且代码末尾没有分号</span><span style="letter-spacing: .55pt">;</span><span lang="EN-US" style="letter-spacing:.3pt">2</span><span style="letter-spacing:.55pt">)</span><span style="letter-spacing:.4pt">空类型安全(编译期处理了各种</span><span style="letter-spacing:.2pt"> </span><span lang="EN-US" style="letter-spacing: .25pt">nu</span><span lang="EN-US" style="letter-spacing:.15pt">ll</span><span lang="EN-US" style="letter-spacing:.2pt"> </span><span style="letter-spacing: .4pt">情况</span><span style="letter-spacing:.2pt"> </span><span style="letter-spacing:.55pt">,</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.4pt">避免执行时异常</span><span style="letter-spacing:.5pt">)</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.5pt">;</span><span lang="EN-US" style="letter-spacing:.3pt">3</span><span style="letter-spacing: .5pt">)</span><span style="letter-spacing:.4pt">函数式的</span><span style="letter-spacing:.5pt">,</span><span style="letter-spacing:.4pt">可使用</span><span lang="EN-US" style="letter-spacing:.2pt"> la</span><span lang="EN-US" style="letter-spacing:.35pt">m</span><span lang="EN-US" style="letter-spacing: .25pt">bd</span><span lang="EN-US" style="letter-spacing:.2pt">a </span><span style="letter-spacing:.35pt">表达式</span><span style="letter-spacing:.5pt">;</span><span lang="EN-US" style="letter-spacing:.25pt">4</span><span style="letter-spacing: .5pt">)</span><span style="letter-spacing:.35pt">可扩展方法(可扩展任意</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.3pt">类的的属性)</span><span lang="EN-US">&nbsp; </span><span style="letter-spacing:.3pt">;</span><span lang="EN-US" style="letter-spacing:.2pt">5</span><span style="letter-spacing: .3pt">)互操作性强,可以在一个项目中</span><span style="letter-spacing:.25pt">使用</span><span lang="EN-US" style="letter-spacing:.1pt"> k</span><span lang="EN-US" style="letter-spacing:.15pt">o</span><span lang="EN-US" style="letter-spacing: .1pt">t</span><span lang="EN-US" style="letter-spacing:.05pt">li</span><span lang="EN-US" style="letter-spacing:.15pt">n</span><span lang="EN-US" style="letter-spacing:.1pt"> </span><span style="letter-spacing:.25pt">和</span><span style="letter-spacing:.1pt"> </span><span lang="EN-US" style="letter-spacing: .05pt">j</span><span lang="EN-US" style="letter-spacing:.1pt">ava </span><span style="letter-spacing:.25pt">两种语言混合开发</span><span style="letter-spacing:.3pt">;</span></span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:4.25pt;text-indent:1.65pt;line-height: 92%;mso-outline-level:1"><span lang="EN-US" style="font-size:10.0pt;line-height: 92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.35pt">14</span><span style="font-size:10.0pt;line-height:92%; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; letter-spacing:.6pt">、</span><span lang="EN-US" style="font-size:10.0pt; line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑; color:#333333">&nbsp; <span style="letter-spacing: .3pt">s</span><span style="letter-spacing:.25pt">tr</span><span style="letter-spacing:.2pt">i</span><span style="letter-spacing:.35pt">n</span><span style="letter-spacing:.4pt">g</span><span style="letter-spacing:.2pt"> </span></span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">转换成</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> i</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">n</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">t</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.4pt">g</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.35pt">e</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">r</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt"> </span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.55pt">的方式及</span><span style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.5pt">原理</span><span lang="EN-US" style="font-size:10.0pt;line-height:92%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:15.6pt;text-indent:1.75pt;line-height: 31.2pt;mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.2pt">1</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.35pt">)</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.25pt">p</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.2pt">se</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">I</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.2pt">n</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">t(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.2pt">S</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">tr</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.1pt">i</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.2pt">n</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.25pt">g</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">&nbsp;</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.2pt">s</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.15pt">)</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-15.5pt; mso-text-raise:15.5pt;letter-spacing:.35pt">内部调用</span><span style="font-size: 10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">&nbsp;</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.25pt">p</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.2pt">a</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">r</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.2pt">s</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">e</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.1pt">I</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">n</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.1pt">t(</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">s</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.05pt">,</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt">&nbsp;<span style="letter-spacing:.15pt">10</span><span style="letter-spacing:.1pt">)</span></span><span style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.3pt">默认为</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.15pt">&nbsp;10 </span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-15.5pt;mso-text-raise:15.5pt; letter-spacing:.3pt">进制</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.15pt">&nbsp; </span><span style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-15.5pt;mso-text-raise:15.5pt;letter-spacing:.35pt">。</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="text-indent:1.3pt;line-height:90%"><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">2</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">)</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">正常判断</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt"> </span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.15pt">nu</span><span lang="EN-US" style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.1pt">ll\</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.2pt">进制范围</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;letter-spacing:.25pt">,</span><span style="font-size:10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333"> <span lang="EN-US" style="letter-spacing: .1pt">l</span><span lang="EN-US" style="letter-spacing:.15pt">en</span><span lang="EN-US" style="letter-spacing:.1pt">g</span><span lang="EN-US" style="letter-spacing:.05pt">t</span><span lang="EN-US" style="letter-spacing: .1pt">h </span><span style="letter-spacing:.15pt">等</span><span style="letter-spacing:.25pt">。</span></span><span lang="EN-US" style="font-size: 10.0pt;line-height:90%;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:15.65pt;text-indent:1.4pt;line-height: 18.0pt;mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.25pt">3</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.5pt">)</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.4pt">判断第一个字符是否是符号位</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.45pt">。</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:13.2pt;text-indent:.75pt;line-height:18.1pt; mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.25pt">4</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.55pt">)</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.45pt">循环遍历确定每个字符的十进制值</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.5pt">。</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑"><o:p></o:p></span></p><p class="MsoNormal" style="margin-top:13.1pt;text-indent:1.55pt;line-height: 18.0pt;mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.3pt">5</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.5pt">)</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.4pt">通</span><span style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.35pt">过</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.2pt">*</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.3pt">=</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.35pt">和</span><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.2pt">-</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.3pt">=</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.35pt">进行计算拼接</span><span style="font-size: 10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.5pt">。</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p><p> </p><p class="MsoNormal" style="margin-top:13.2pt;text-indent:1.3pt;line-height:18.0pt; mso-line-height-rule:exactly"><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family:微软雅黑;color:#333333; position:relative;top:-1.5pt;mso-text-raise:1.5pt;letter-spacing:.25pt">6</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.45pt">)</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.4pt">判断是否为负值返回结</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑;color:#333333;position:relative;top:-1.5pt;mso-text-raise:1.5pt; letter-spacing:.35pt">果</span><span style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif; mso-bidi-font-family:微软雅黑;color:#333333;position:relative;top:-1.5pt; mso-text-raise:1.5pt;letter-spacing:.45pt">。</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;微软雅黑&quot;,sans-serif;mso-bidi-font-family: 微软雅黑"><o:p></o:p></span></p>

上一篇 下一篇

热门资讯