Question ID :957709540380
What will be the output of compiling and running the following program?
class CloneTest
{
public static void main(
String[] args)
{
int ia[ ][ ] = { { 1 , 2}, null };
int ja[ ][ ] = (int[ ] [ ])ia.clone();
System.out.print((ia == ja) + " ");
System.out.println(ia[0] == ja[0] && ia[1] == ja[1]);
}
Answer is :It will print 'false true' when run.Can anyone explain me how do we get such answer.
Sonir