In Collection Interface method boolean equals(Object obj) does any Object obj qualifies as parameter or only Collection c qualifies as parameter?

后端 未结 0 1940
暗喜
暗喜 2021-02-14 02:35

I have the following code -

Collection collection1 = new ArrayList();
collection1.add(new Integer(1));

Collection collection2 = new ArrayList();
collection2.add(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题