File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Doubt in Arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Doubt in Arrays " Watch "Doubt in Arrays " New topic
Author

Doubt in Arrays

rasu rg
Greenhorn

Joined: Jun 30, 2006
Posts: 3
How the allocation will be done in multi dimensional arrays like 4 dimensional arrays, 3 dimensional arrays, how four dimensional arrays will be related to objects or array in two/three dimensional arrays. Where can i get the detail information about array allocations.

Iam scoring 50%-80% in mock tests, but how will be the questions in real scjp exam, will the questions similar to the ones which we are doing in mock tests.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Remember that you are declaring arrays of arrays, so something like int[m][n] will allocate m spaces in an array. Each of these spaces will be references to arrays with n elements.
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809



Here is how the allocation happens for a two dimensional array.




Naseem
[ July 03, 2006: Message edited by: Naseem Khan ]

Asking Smart Questions FAQ - How To Put Your Code In Code Tags
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Arrays
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in Arrays
 
Similar Threads
Enhansed For Loop Please explain me
Array reference assignment
Multi Dementional Array
How find out how many dimensions an objectArray has?
Assigning double dimension array to single dimension array of type Object