hashCode()返回的是什么东西?什么叫hash code?

解决方案 »

  1.   

    就是引用的比较是比较hash code,
    hashcode的解释java编程思想里有
      

  2.   

    public class Test {
    public static void main (String args[]){
    System.getProperties().put("boolean","true");
    boolean bl=Boolean.getBoolean("boolean");
    System.out.println("return is "+bl);
    }
    }
    return is true
    这句话的意思:如果在System的Property里面有以argument命名的元素(即boolean),并且他的值是一个等于"true"的字符串,才会返回true