What output will be produced by the following code?
char[] a = new char[3];
for (int i = 0; i
c[i] = 'a';
char[] b = a;
System.out.println("a[1] = " + a[1] + ", b[1] = " + b[1]);
System.out.println("a[2] = " + a[2] + ", b[2] = " + b[2]);
b[2] = 'b';
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here