answersLogoWhite

0


Best Answer

It seems that the number of allowed array dimensions is implementation specific and not set by the Java specifications. I'm sure that any Java implementation will allow a reasonable number of dimensions for any project you have.

After a quick test, it seems that Java is not limited by an arbitrary number so much as a practical value. If you add hundreds of array dimensions, Java will allow you to do so as long as you have enough memory allocated for Java. After a bit of copy-pasting the program no longer ran, exiting with a StackOverflowError.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

Not restricted.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many dimensions you can declare in array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many dimensions can an array be created in c?

There is no language limit to "How many dimensions can an array be created in c?". The limit will depend on available memory.


How do you declare an array in easytrieve?

your wish


What are the dimensions of an array of 3x6?

The dimensions are 3 x 6. Also, since there are two numbers, you might say it is a 2-dimensional array.


A c plus plus code to make a multidimensional array that can store strings?

int myarray=[5][5]; This snippet of code creates a 5X5 two-dimensional array. You can declare an array with more dimensions, but you shouldn't really need to go above more than four dimensions. Four-dimensional arrays are only used by high-end graphics programs or programs that need to calculate a ton of data.


What is the difference between array and string of array?

When we declare an array of characters it has to be terminated by the NULL , but termination by NULL in case of string is automatic.


Declare an array of 100 integers?

int array_name [100];


What is dimentions arrays in java?

You can make arrays with any number of dimensions (depending on RAM limitations, of course). However, internally, a two-dimensional array (for example) is stored as an array of arrays; that is, each first-level array contains an array of the second level. Similarly with higher dimensions.


How do you declare an array of buttons in Java?

To declare an array of buttons in Java, you would use the following syntax: Button[] buttonArray = new Button[n]; where n is the number of buttons you want in the array. This creates an array of n buttons, where each element can hold a reference to a Button object.


How do you declare an array alpha of 10 rows and 20 columns of type int?

int array[2][10][20];


How do you declare an array of five pointers to chars?

char *p="ragav"


Is it possible to declare an array of numbers in an integer form?

Yes: int[] integerArray;


How do you declare a string array and add elements to it in C plus plus?

You cannot add elements to a fixed array in C or C++. If, however, the array is declared as a pointer to an array, you can add elements by allocating a new array, copying/adding elements as needed, reassigning the new array to the pointer, and deallocating the original array.