Thank you so much Henry,Keith,John.But, it still confusing.....
this one is not compiling.My analysis is b2 is a two dimensional array,b1 is one dimensional array.Assigning one dimensional array to two dimansinal array is invalid.I applied that same concept to b2=b1;But,here it is not working.Can anyone explain it in the same way that i understood like 1.
Joined: Jan 05, 2006
I thought b2 is a three dimensinal byte array.But ,you guys are saying b2 is a one dimensional byte array.That part,i don't get.Please help me to get understand.
Joined: Feb 07, 2005
If you have the declaration byte b, then b is a reference to the Java equivalent of a 3-D array of bytes.
However, in your example, you have an array where you have four dimensions b.
If you access b, then because of how you have defined b, this is a 1-D array of bytes.