I am confused with a comparison between aliases in Strings and aliases in Arrays.
String a = "hello";
String b = "hello";
a == b;
>>> true
int [] a = {1,2,3};
int [] b = {1,2,3};
a == b
>>> false
I knew in Strings, when you call new String method, it would direct to a different address. Otherwise, it would take the previous address with the same String literal. However, things do not work for arrays. Can someone explain why it gives false?