摘要
本文主要目标是研究在JAVA中对象"相等"比较的方式。通过研究JVM对内存的管理方式、JAVA函数重写、装箱与拆箱阐明其实现"相等"的原理。文章指出了实现两种"相等"比较的不同点,读者可以对"相等"比较有一个理论上深化,同时也助于更好理解面向对象的编程思路。
The main goal of this article is to study the methods of JAVA object for "equal". By studying the JVM memory management methods,JAVA function overrides,boxing and unboxing we can clarify the realization of the principle for "equal". In this article the author points out the difference between two kinds of "equal ",the readers can understand the principle of object"equal"deeply,and also help the readers to understand the idea of object oriented programming better.
出处
《湖北第二师范学院学报》
2015年第2期31-35,共5页
Journal of Hubei University of Education