answersLogoWhite

0


Best Answer

Yes, Java supports multidimensional Arrays.

Syntax is

int[ ][ ] aryNumbers = new int[x][y];

x represents number of rows

y represents number of columns

User Avatar

Wiki User

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

Wiki User

11y ago

In general, a multidimensional array is an array that requires more than one index to save or restore elements. An array can have one, two, three, four, etc. dimensions. For example, a four-dimensional array would require four index values to access any of its elements.

Specifically in Java, a two-dimensional array is implemented as an array of arrays, a three-dimensional array as an array of arrays of arrays, etc.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Does Java support multidimensional arrays
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


What are associative arrays in Java programming language?

Java does not support associative arrays. However, you can achieve the same thing using a map.


Where can one find advice about working with Java sorting arrays?

There are many places where one could find advice about working with Java sorting arrays. The best place to learn more about working with Java would be to contact Oracle.


Is it possible to use arrays when using the java programming language?

It is possible to use arrays when employing java programming language. There are many different series of programming choice that can be employed with various end results.


An array of array can be created in java?

Yes. int[][] as; // this will define an array of arrays of integers Multidimensional arrays, remember, are simply arrays of arrays. So a two-dimensional array of type int is really an object of type int array (int []), with each element in that array holding a reference to another int array. The second dimension holds the actual int primitives. The following code declares and constructs a two-dimensional array of type int: int[][] myArray = new int[3][]; Notice that only the first brackets are given a size. That's acceptable in Java, since the JVM needs to know only the size of the object assigned to the variable myArray.


Can ragged arrays created by using java?

I assume you mean that you have a number of rows, and that not all rows have the same number of "cells". Yes, in Java a two-dimensional array is implemented as an array of arrays (each item in the top-level array is, in itself, an array); a 3-dimensional array is an array of arrays of arrays, etc.; and there is no rule stating that all secondary (etc.) arrays must have the same number of elements.


What does java not support?

Java does not support multiple inheritance.......


Which one is better than arrays in java?

Better for what? Arrays have their purposes, other constructs have other purposes. Depending on what you need, an array may be just what you need.


Does a DSI have java?

No it does not support Java


How can you prove the given string by user is array or not in java?

Strings and Arrays are two totally different data types in Java and they will not match with one another.


Does java support call by reference?

No , Java does not support call by reference.


Does Java support copy constructor?

No. Java does not support copy constructor