You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int[] a = newint[10];
int[] b = a;
b[1] = 1; //a[1] = 1Employee[] emArray = newEmployee[1]; //an array which stores object//references point to nothing.emArray[0] = newEmployee();
emArray[1] = newEmployee();
//arraycopy(from, fromindex, to, toindex, num);
Equals() & ==
Strings1 = "abc";
Strings2 = "abc";
Strings3 = newString("abc");
System.out.println(s1 == s2); //trueSystem.out.println(s1 == s3); //falseSystem.out.pritnln(s1.equals(s3)); //true//equals() must be overrided when design a new class