哈希码与对象的引用或地址之间的区别? [英] difference between hash code and reference or address of an object?

查看:180
本文介绍了哈希码与对象的引用或地址之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哈希码与对象的引用或地址之间的区别?

difference between hash code and reference or address of an object?

推荐答案

在JavaME中,这三件事是不相关的.

In JavaME, these three things are unrelated.

对象的hashCode是它的半唯一标识符.

An object's hashCode is a semi-unique identifier for it.

对对象的引用是该对象上的作用域句柄.

A reference to an object is a scoped handle on that object.

(可能)无法获得对象的地址,并且肯定是无用的.

An object's address is (probably) unobtainable, and certainly useless.

这篇关于哈希码与对象的引用或地址之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆