-2
If I have two reference object with different name in main class Such as:
AA aa = new AA();
AA bb = new AA();
and if i compare it using aa.equals(bb); then what it will return.
and if i will use
BB bb = new BB();
and i compare it using aa.equals(bb);
Then what is difference both of them
我總是混淆了對象的null行爲。object.quals方法與java中的==的區別
上有SO 許多類似這樣的問題 http://stackoverflow.com/questions/1643067/whats-the-difference-between-equals-and –