当然不一样,你这样输出的根本不是icpp_id和icp_id的值,你输出的是JVM分配给他们的一个地址引用的值,而不是实际的值,你引用icpp_id[0]和icp_id[0],输出的结构就一样了。

解决方案 »

  1.   

    你实际上调用的是
    System.out.println(icp_id.toString())实际上toString方法是从Object继承过来的,如果想知道为什么不同看Object.toSting();如果想让他们相同,自己编写一个toString.
      

  2.   

    哪们能提供一个说明byte的网址.
      

  3.   

    看一下Object的实现就明白了。如下:
         /**
         * Returns a string representation of the object. In general, the 
         * <code>toString</code> method returns a string that 
         * "textually represents" this object. The result should 
         * be a concise but informative representation that is easy for a 
         * person to read.
         * It is recommended that all subclasses override this method.
         * <p>
         * The <code>toString</code> method for class <code>Object</code> 
         * returns a string consisting of the name of the class of which the 
         * object is an instance, the at-sign character `<code>@</code>', and 
         * the unsigned hexadecimal representation of the hash code of the 
         * object. In other words, this method returns a string equal to the 
         * value of:
         * <blockquote>
         * <pre>
         * getClass().getName() + '@' + Integer.toHexString(hashCode())
         * </pre></blockquote>
         *
         * @return  a string representation of the object.
         */
        public String toString() {
    return getClass().getName() + "@" + Integer.toHexString(hashCode());
        }