搜尋此網誌

2013年1月5日 星期六

Java 物件equals method 的用法

Generally speaking , you must override the equals method of your own class. Otherwise , the jvm will treat two objects with the same memory address as the same.

沒有留言:

張貼留言