This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes maximum array dimension Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "maximum array dimension" Watch "maximum array dimension" New topic

maximum array dimension

Francisco A Guimaraes
Ranch Hand

Joined: Mar 20, 2002
Posts: 182
Does anybody know if there is a limit to the number of dimensions([][][]...) an array can have? I looked in the JLS in chapters 10 and 15 but couldn�t find a definitive answer.

Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="" target="_blank" rel="nofollow">here</a> to see an example.
Jon Strayer
Ranch Hand

Joined: Dec 04, 2002
Posts: 133
I can think of no reason there would be in the language. It's possible that there is some limitation in the class file format or JVM. But as far a s the language goes there isn't any limit to the number of dimensions.
[ February 04, 2003: Message edited by: Jon Strayer ]

I agree. Here's the link:
subject: maximum array dimension