Java字符串操作中的“= =”与方法 equals()有什么不同?
(P108)运算符“==”用于判定两个字符串对象是否是同一实例,即它们在内存中的存储空间是否相同。而方法 equals()的作用是判定两个字符串的值是否相等
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/437294.html
上一篇:Man pollutes his environment in various ways. For example, some people dirty the air wiih gases and smoke. The machines and motor vehicles they operate fill the air with 1______ noise. 2______ people poison the water with chemicals and other 3______.
下一篇:混合型国际分工的典型代表是()