How does an array's equal method work?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hey I'm currently studying for a java final and I am befuddled by a simple equals method. The question given is "Given the following array declarations, what does the following print" and I thought it would be true, false, true however after copy and pasting the code it reveals the answer is false, false, true. I understand that the == only works when they are the same instance of the object but I do not understand why the first on is false. I tried finding the method in the array api but could not find one with the same arguments. Forgive