class HelloExam
{
public static void main(
String[] args)
{
int[][] a = {{1,2},{0,1,2},{-1,0,2}}; // 1
Object[] obj = (Object[])a.clone(); // 2
for(int i = 0; i < obj.length; i++) // 3
{
int[] ia = (int[])obj[i]; // 4
System.out.print(ia[i]); // 5
}
}
}
This Question is given in
http://www.danchisholm.net/july21/mybook/chapter5/exam1ans.html. Answer of this Question is 112. But i am not able to understand.
Can Anybody help me in this matter.
[ April 27, 2005: Message edited by: deepak bhalotia ]