• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

3d arrays

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I came across this question in cerPal and I got confused in 3d array.

I understand that 2d array is a array of arrays. how does it work with 3d, 4d arrays ?





Rohini.
 
Ranch Hand
Posts: 173
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello rohini....
In java multidimensional arrays are implented as arrays of arrays ...
1-D array can hold the primitives or references of specified type...
2-D array hold refereces to 1-D array objects...
Similarly, 3-D array hold refereces to 2-D array objects and so on...

Also , note that arrays in java are objects...
HTH
 
reply
    Bookmark Topic Watch Topic
  • New Topic