Two Laptop Bag
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
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
jQuery in Action, 3rd edition