Is it possible for me to swap one character type multidimensional array with another integer type array? This problem was asked to me during a PHP developer interview. Since in PHP there are no data types just $ variables so I think it's possible. I wanna know if it is possible in Java.
int A[][]=new int[4][4];
char B[][]=new char[4][4];
A=|1234
|5678
|9 10 11 12
|13 14 15 16
B=|ABCD
|EFGH
|IJKL
|MNOP
result
A=|ABCD
|EFGH
|IJKL
|MNOP
B=|1234
|5678
|9 10 11 12
|13 14 15 16