Posted By:
sunil_anand
Posted On:
Wednesday, October 1, 2003 10:08 AM
Memory Problem with declartion of multidimensional array.
I am declaring an array in my class
boolean foo[][][][][]= new boolean[33][33][24][84][2];
idealy it should take a memory of about 4.390848 MB but it takes around 46 MB as displayed in memory monitor.
I am unable to know how memory is allocated in 5 dimensional array like this.
If any body can help me with explanation of problem.
I know this is conceptual problem, but not able to help.
Does all this extra memory goes to maintain the indexing information of N-Dimension.
regards
Sunil