Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

2D Arrays in Java

800378Dec 29 2008 — edited Dec 31 2008
Hello everyone,

Can anybody tell me how 2D arrays are internally stored in java i.e in row major form or column major form?
OR
In other words if I create a 2d array say:
int a[][] =  new int[6][10];
then what does a[0] represents, a single row or a single column?
And is it possible to do it other way around?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2009
Added on Dec 29 2008
7 comments
1,380 views