Hi,
How many objects will be created by the following code.
Cat[][] mycats = {{new Cat(),new Cat()},
{new Cat(),new Cat(),new Cat()}};
I have taken this from Cathy's book for
SCJP guide.The answer says 8 objects but i thought six objects would be created.Though there is a nice pictorial representation of the whole process,am still not getting about the two extra objects in the answer.Please point me where am going wrong??
Let us make the world a better place to live